function BlockPluginTrait::blockForm
Same name in other branches
- 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::blockForm()
- 8.9.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::blockForm()
- 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::blockForm()
1 call to BlockPluginTrait::blockForm()
- BlockPluginTrait::buildConfigurationForm in core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php - Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.
16 methods override BlockPluginTrait::blockForm()
- BlockContentBlock::blockForm in core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php - Overrides \Drupal\Core\Block\BlockBase::blockForm().
- BookNavigationBlock::blockForm in core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php - Broken::blockForm in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Returns the configuration form elements specific to this block plugin.
- FieldBlock::blockForm in core/
modules/ layout_builder/ src/ Plugin/ Block/ FieldBlock.php - ForumBlockBase::blockForm in core/
modules/ forum/ src/ Plugin/ Block/ ForumBlockBase.php
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 195
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.