abstract protected function VariantPluginConfigureBlockFormBase::prepareBlock in Page Manager 8.4
Same name and namespace in other branches
- 8 page_manager_ui/src/Form/VariantPluginConfigureBlockFormBase.php \Drupal\page_manager_ui\Form\VariantPluginConfigureBlockFormBase::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 VariantPluginConfigureBlockFormBase::prepareBlock()
- VariantPluginConfigureBlockFormBase::buildForm in page_manager_ui/
src/ Form/ VariantPluginConfigureBlockFormBase.php - Form constructor.
2 methods override VariantPluginConfigureBlockFormBase::prepareBlock()
- VariantPluginAddBlockForm::prepareBlock in page_manager_ui/
src/ Form/ VariantPluginAddBlockForm.php - Prepares the block plugin based on the block ID.
- VariantPluginEditBlockForm::prepareBlock in page_manager_ui/
src/ Form/ VariantPluginEditBlockForm.php - Prepares the block plugin based on the block ID.
File
- page_manager_ui/
src/ Form/ VariantPluginConfigureBlockFormBase.php, line 90
Class
- VariantPluginConfigureBlockFormBase
- Provides a base form for configuring a block as part of a variant.
Namespace
Drupal\page_manager_ui\FormCode
protected abstract function prepareBlock($block_id);