Method | Description | |
---|---|---|
getFilters ( ) : Array | Return an array of twig filters | |
getGlobals ( ) : Array | Inject into the template scope a read-only copy of Minimee's runtime settings | |
getName ( ) : String | Name of our twig filter | |
minimeeFilter ( String $html, Array $settings = [] ) : String | Define our filter |
Method | Description | |
---|---|---|
detectType ( $html = '' ) | Quick string detection to determine type | |
pregMatchAssetsByType ( $type, $haystack ) : boolean | array | Helper function to parse content looking for CSS and JS tags. |
protected detectType ( $html = '' ) |
public getFilters ( ) : Array | ||
return | Array |
public getGlobals ( ) : Array | ||
return | Array |
public minimeeFilter ( String $html, Array $settings = [] ) : String | ||
$html | String | |
$settings | Array | |
return | String |
protected pregMatchAssetsByType ( $type, $haystack ) : boolean | array | ||
return | boolean | array | Array of found matches, or false if none |