Elgg  Version master
Public Member Functions | List of all members
Elgg\Amd\ViewFilter Class Reference

This filter adds AMD names to anonymous AMD modules defined in views. More...

Public Member Functions

 filter ($viewName, $content)
 Inserts the AMD name into $content and returns the new value. More...
 

Detailed Description

This filter adds AMD names to anonymous AMD modules defined in views.

Since
1.9

Definition at line 11 of file ViewFilter.php.

Member Function Documentation

Elgg\Amd\ViewFilter::filter (   $viewName,
  $content 
)

Inserts the AMD name into $content and returns the new value.

Parameters
string$viewNameThe name of the view.
string$contentThe output of the view to be filtered.
Returns
string The new content with the AMD name inserted, if applicable.

Definition at line 48 of file ViewFilter.php.


The documentation for this class was generated from the following file: