1. 1.7.x modules/layout/includes/block_legacy.class.inc BlockLegacy
  2. 1.10.x core/modules/layout/includes/block_legacy.class.inc BlockLegacy
  3. 1.8.x modules/layout/includes/block_legacy.class.inc BlockLegacy
  4. 1.9.x modules/layout/includes/block_legacy.class.inc BlockLegacy

@file Class that wraps around legacy hook_block_view/config/save() hooks.

Hierarchy

Expanded class hierarchy of BlockLegacy

File

modules/layout/includes/block_legacy.class.inc, line 6
Class that wraps around legacy hook_block_view/config/save() hooks.

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
Block::checkAccess function Check if this block should be shown based on current contexts.
Block::__construct function Create a new Block object. Overrides LayoutHandler::__construct
Block::formValidate function Validate handler to validate the form settings.
Block::getAdminConditionsPreview function Return a fieldset listing any visibility conditions set for this block.
Block::getAdminPreview function Return a preview for this block.
Block::getBlockInfo function Return the block info for this block, as provided by hook_block_info().
Block::getChildren function Allows an array of "child blocks" for display in the "Add Block" dialog.
Block::getClone function Clone this block to give it a new UUID but the same configuration.
Block::getRequiredContexts function Get a list of all required context plugin names for this block.
BlockLegacy::buildBlock protected function Build a block using the legacy hook_block_view().
BlockLegacy::$content private property The content for this block as provided by hook_block_view().
BlockLegacy::form function Overrides Block::form
BlockLegacy::formSubmit function Overrides Block::formSubmit
BlockLegacy::getAdminTitle function Overrides Block::getAdminTitle
BlockLegacy::getContent function Overrides Block::getContent
BlockLegacy::getTitle function Overrides Block::getTitle
Block::prepare function Do any processing prior to getTitle() and getContent() being called.
Block::setContexts function Set the contexts for this block.
Block::toArray function Convert the configuration of this block to an array for storage. Overrides LayoutHandler::toArray
LayoutHandler::label function Assemble a human-readable label of this object.