PHP 클래스 Elgg\Amd\ViewFilter

This filter adds AMD names to anonymous AMD modules defined in views.
부터: 1.9
파일 보기 프로젝트 열기: elgg/elgg

공개 메소드들

메소드 설명
filter ( string $viewName, string $content ) : string Inserts the AMD name into $content and returns the new value.

비공개 메소드들

메소드 설명
getAmdName ( string $name ) : string Given the view name, returns the AMD name.

메소드 상세

filter() 공개 메소드

Inserts the AMD name into $content and returns the new value.
public filter ( string $viewName, string $content ) : string
$viewName string The name of the view.
$content string The output of the view to be filtered.
리턴 string The new content with the AMD name inserted, if applicable.