You are here

public function SectionLayout::submitConfigurationForm in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Layouts/SectionLayout.php \Drupal\dashboards\Layouts\SectionLayout::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 LayoutDefault::submitConfigurationForm

File

src/Layouts/SectionLayout.php, line 41

Class

SectionLayout
Add layout settings.

Namespace

Drupal\dashboards\Layouts

Code

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