FieldBlock extends Block

Provides entity field values in configurable blocks.

Hierarchy

Expanded class hierarchy of FieldBlock

File

core/modules/field/field.block.inc, line 7

Members

Contains filters are case sensitive
Name Modifiers Type Descriptionsort descending
LayoutHandler::label function Assemble a human-readable label of this object.
FieldBlock::form function Builds the block's configuration form. Overrides Block::form
Block::checkAccess function Check if this block should be shown based on current contexts.
Block::getClone function Clone this block to give it a new UUID but the same configuration.
Block::toArray function Convert the configuration of this block to an array for storage. Overrides LayoutHandler::toArray
FieldBlock::createPseudoInstance protected function Create a field instance and display that uses custom formatter settings.
FieldBlock::__construct function Create a new Block object. Overrides Block::__construct
FieldBlock::getChildren function Creates an array of "child blocks" for display in the "Add Block" dialog. Overrides Block::getChildren
Block::prepare function Do any processing prior to getTitle() and getContent() being called.
FieldBlock::formatterFormAjax static function Form #ajax callback used by FieldBlock::form().
Block::getRequiredContexts function Get a list of all required context plugin names for this block.
Block::getAdminConditionsPreview function Return a fieldset listing any visibility conditions set for this block.
Block::getBlockInfo function Return the block info for this block, as provided by hook_block_info().
Block::setContexts function Set the contexts for this block.
FieldBlock::getContent function Sets block content on block view. Overrides Block::getContent
FieldBlock::getTitle function Sets block subject on block view. Overrides Block::getTitle
FieldBlock::getAdminPreview function Sets description text on draggable block in Layout builder. Overrides Block::getAdminPreview
FieldBlock::getAdminTitle function Sets title text on draggable block panel in Layout builder. Overrides Block::getAdminTitle
FieldBlock::formSubmit function Submit handler to save the form settings. Overrides Block::formSubmit
Block::formValidate function Validate handler to validate the form settings.