function BlockPluginTrait::blockForm
Same name in other branches
- 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::blockForm()
- 10 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.
1 method overrides BlockPluginTrait::blockForm()
- Broken::blockForm in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Returns the configuration form elements specific to this block plugin.
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 191
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.