abstract protected function BlockFormBase::prepareBlock in Context 8
Same name and namespace in other branches
- 8.4 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::prepareBlock()
- 8.0 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::prepareBlock()
Prepares the block plugin based on the block ID.
Parameters
string $block_id: Either a block ID, or the plugin ID used to create a new block.
Return value
\Drupal\Core\Block\BlockPluginInterface The block plugin.
1 call to BlockFormBase::prepareBlock()
- BlockFormBase::buildForm in src/
Reaction/ Blocks/ Form/ BlockFormBase.php - Form constructor.
2 methods override BlockFormBase::prepareBlock()
- BlockAddForm::prepareBlock in src/
Reaction/ Blocks/ Form/ BlockAddForm.php - Prepares the block plugin based on the block ID.
- BlockEditForm::prepareBlock in src/
Reaction/ Blocks/ Form/ BlockEditForm.php - Prepares the block plugin based on the block ID.
File
- src/
Reaction/ Blocks/ Form/ BlockFormBase.php, line 146
Class
Namespace
Drupal\context\Reaction\Blocks\FormCode
protected abstract function prepareBlock($block_id);