You are here

public function LayoutDefault::submitConfigurationForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/LayoutDefault.php \Drupal\Core\Layout\LayoutDefault::submitConfigurationForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PluginFormInterface::submitConfigurationForm

1 call to LayoutDefault::submitConfigurationForm()
MultiWidthLayoutBase::submitConfigurationForm in core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php
Form submission handler.
3 methods override LayoutDefault::submitConfigurationForm()
LayoutTestPlugin::submitConfigurationForm in core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestPlugin.php
Form submission handler.
LayoutWithoutLabel::submitConfigurationForm in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/LayoutWithoutLabel.php
Form submission handler.
MultiWidthLayoutBase::submitConfigurationForm in core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php
Form submission handler.

File

core/lib/Drupal/Core/Layout/LayoutDefault.php, line 117

Class

LayoutDefault
Provides a default class for Layout plugins.

Namespace

Drupal\Core\Layout

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['label'] = $form_state
    ->getValue('label');
}