Elgg  Version master
Public Member Functions | List of all members
Elgg\Views\CalculateSRI Class Reference

Calculates SRI for simplecache resources. More...

Public Member Functions

 __invoke (\Elgg\Hook $hook)
 Calculates the SRI of a simplecache resource file for future use. More...
 

Detailed Description

Calculates SRI for simplecache resources.

Since
4.3

Definition at line 10 of file CalculateSRI.php.

Member Function Documentation

Elgg\Views\CalculateSRI::__invoke ( \Elgg\Hook  $hook)

Calculates the SRI of a simplecache resource file for future use.

Parameters
\Elgg\Hook$hook'simplecache:generate', '[css|js]'
Returns
void

Definition at line 19 of file CalculateSRI.php.


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