PHP Класс BlockManager

Автор: Shea Dawson ([email protected])
Наследование: extends Object
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( )
getAreasForPageType ( string $class ) : array Gets an array of all areas defined for the current theme that are compatible with pages of type $class.
getAreasForTheme ( string $theme = null, boolean $keyAsValue = true ) : array Gets an array of all areas defined for the current theme.
getBlackListedPageTypes ( ) * getBlackListedPageTypes optionally configured by the developer Includes blacklisted page types defined in the old exclude_from_page_types array
getBlockClasses ( )
getExcludeFromPageTypes ( ) * Exclusion of blocks from page types defined in yaml
getPrefixDefaultCSSClasses ( ) * Prefix for the default CSSClasses
getUseBlockSets ( ) * Usage of BlockSets configurable from yaml
getUseExtraCSSClasses ( ) * Usage of extra css classes configurable from yaml
getWhiteListedPageTypes ( ) * getWhiteListedPageTypes optionally configured by the developer

Приватные методы

Метод Описание
getTheme ( ) * Get the current/active theme or 'default' to support theme-less sites
getThemeConfig ( ) * Get the block config for the current theme

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

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

public __construct ( )

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

Gets an array of all areas defined for the current theme that are compatible with pages of type $class.
public getAreasForPageType ( string $class ) : array
$class string
Результат array $areas

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

Gets an array of all areas defined for the current theme.
public getAreasForTheme ( string $theme = null, boolean $keyAsValue = true ) : array
$theme string
$keyAsValue boolean
Результат array $areas

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

* getBlackListedPageTypes optionally configured by the developer Includes blacklisted page types defined in the old exclude_from_page_types array

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

public getBlockClasses ( )

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

* Exclusion of blocks from page types defined in yaml

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

* Prefix for the default CSSClasses

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

* Usage of BlockSets configurable from yaml
public getUseBlockSets ( )

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

* Usage of extra css classes configurable from yaml

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

* getWhiteListedPageTypes optionally configured by the developer