You are here

public function BlockPluginTrait::blockForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::blockForm()
  2. 10 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()
AggregatorFeedBlock::blockForm in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
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

... See full list

File

core/lib/Drupal/Core/Block/BlockPluginTrait.php, line 188

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  return [];
}