You are here

public function BlockBase::blockSubmit in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockBase.php \Drupal\Core\Block\BlockBase::blockSubmit()

Adds block type-specific submission handling for the block form.

Note that this method takes the form structure and form state for the full block configuration form as arguments, not just the elements defined in BlockPluginInterface::blockForm().

Parameters

array $form: The form definition array for the full block configuration form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides BlockPluginInterface::blockSubmit

See also

\Drupal\Core\Block\BlockPluginInterface::blockForm()

\Drupal\Core\Block\BlockPluginInterface::blockValidate()

1 call to BlockBase::blockSubmit()
BlockBase::submitConfigurationForm in core/lib/Drupal/Core/Block/BlockBase.php
Most block plugins should not override this method. To add submission handling for a specific block type, override BlockBase::blockSubmit().
10 methods override BlockBase::blockSubmit()
AggregatorFeedBlock::blockSubmit in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Adds block type-specific submission handling for the block form.
BlockContentBlock::blockSubmit in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Adds block type-specific submission handling for the block form.
BookNavigationBlock::blockSubmit in core/modules/book/src/Plugin/Block/BookNavigationBlock.php
Adds block type-specific submission handling for the block form.
ForumBlockBase::blockSubmit in core/modules/forum/src/Plugin/Block/ForumBlockBase.php
Adds block type-specific submission handling for the block form.
LocalTasksBlock::blockSubmit in core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php
Adds block type-specific submission handling for the block form.

... See full list

File

core/lib/Drupal/Core/Block/BlockBase.php, line 237
Contains \Drupal\Core\Block\BlockBase.

Class

BlockBase
Defines a base block implementation that most blocks plugins will extend.

Namespace

Drupal\Core\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
}