메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
detectType ( $html = '' ) | Quick string detection to determine type | |
pregMatchAssetsByType ( $type, $haystack ) : boolean | array | Helper function to parse content looking for CSS and JS tags. |
public getGlobals ( ) : Array | ||
리턴 | Array |
public minimeeFilter ( String $html, Array $settings = [] ) : String | ||
$html | String | |
$settings | Array | |
리턴 | String |
protected pregMatchAssetsByType ( $type, $haystack ) : boolean | array | ||
리턴 | boolean | array | Array of found matches, or false if none |