Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Elgg
Amd
ViewFilter
PHP Class Elgg\Amd\ViewFilter
This filter adds AMD names to anonymous AMD modules defined in views.
Since:
1.9
Mostra file
Open project: elgg/elgg
Public Methods
Method
Description
filter
(
string
$viewName
,
string
$content
) :
string
Inserts the AMD name into
$content
and returns the new value.
Private Methods
Method
Description
getAmdName
(
string
$name
) :
string
Given the view name, returns the AMD name.
Method Details
filter()
public
method
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.
return
string
The new content with the AMD name inserted, if applicable.