You are here

public function LayoutDefault::submitConfigurationForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Layout/LayoutDefault.php \Drupal\Core\Layout\LayoutDefault::submitConfigurationForm()
  2. 10 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.
2 methods override LayoutDefault::submitConfigurationForm()
LayoutTestPlugin::submitConfigurationForm in core/modules/system/tests/modules/layout_test/src/Plugin/Layout/LayoutTestPlugin.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 110

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');
}