1. 1.12.x modules/layout/includes/block.hero.inc BlockHero
  2. 1.10.x modules/layout/includes/block.hero.inc BlockHero
  3. 1.11.x modules/layout/includes/block.hero.inc BlockHero
  4. 1.7.x modules/layout/includes/block.hero.inc BlockHero

BlockHero extends BlockText

This class allows us to create hero blocks with image backgrounds.

Hierarchy

Expanded class hierarchy of BlockHero

File

modules/layout/includes/block.hero.inc, line 8

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::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.
BlockHero::__construct function Create a new Block object. Overrides BlockText::__construct
BlockHero::form function Builds the block's configuration form. Overrides BlockText::form
BlockHero::formSubmit function Submit handler to save the form settings. Overrides BlockText::formSubmit
BlockHero::formValidate function Validates the form settings. Overrides BlockText::formValidate
BlockHero::getAdminTitle function Sets title text on draggable block panel in Layout builder. Overrides BlockText::getAdminTitle
BlockHero::getContent function Returns the rendered content of this block. Overrides BlockText::getContent
Block::prepare function Do any processing prior to getTitle() and getContent() being called.
Block::setContexts function Set the contexts for this block.
BlockText::getTitle function Sets block subject on block view. Overrides Block::getTitle
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.