PHP Класс Craft\MinimeeTwigExtension

Наследование: extends Twig_Extension
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

detectType() защищенный Метод

Quick string detection to determine type
protected detectType ( $html = '' )

getFilters() публичный Метод

Return an array of twig filters
public getFilters ( ) : Array
Результат Array

getGlobals() публичный Метод

Inject into the template scope a read-only copy of Minimee's runtime settings
public getGlobals ( ) : Array
Результат Array

getName() публичный Метод

Name of our twig filter
public getName ( ) : String
Результат String

minimeeFilter() публичный Метод

Define our filter
public minimeeFilter ( String $html, Array $settings = [] ) : String
$html String
$settings Array
Результат String

pregMatchAssetsByType() защищенный Метод

Returns array of links found.
protected pregMatchAssetsByType ( $type, $haystack ) : boolean | array
Результат boolean | array Array of found matches, or false if none