Elgg  Version 5.1
Public Member Functions | List of all members
Elgg\Javascript\AddSRIConfig Class Reference

Adds SRI information to js elgg.data object. More...

Public Member Functions

 __invoke (\Elgg\Event $event)
 Add SRI information from cached data. More...
 

Detailed Description

Adds SRI information to js elgg.data object.

Used by RequireJS AMD config.

Since
4.3

Definition at line 11 of file AddSRIConfig.php.

Member Function Documentation

Elgg\Javascript\AddSRIConfig::__invoke ( \Elgg\Event  $event)

Add SRI information from cached data.

Need to do this on every page as the cache is extended on every first load of a simplecache resource.

Parameters
\Elgg\Event$event'elgg.data', 'page'
Returns
array

Definition at line 21 of file AddSRIConfig.php.


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