You are here

public function ConfigureSectionForm::validateForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/ConfigureSectionForm.php \Drupal\layout_builder\Form\ConfigureSectionForm::validateForm()
  2. 9 core/modules/layout_builder/src/Form/ConfigureSectionForm.php \Drupal\layout_builder\Form\ConfigureSectionForm::validateForm()

Form validation handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides FormBase::validateForm

File

core/modules/layout_builder/src/Form/ConfigureSectionForm.php, line 164

Class

ConfigureSectionForm
Provides a form for configuring a layout section.

Namespace

Drupal\layout_builder\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $subform_state = SubformState::createForSubform($form['layout_settings'], $form, $form_state);
  $this
    ->getPluginForm($this->layout)
    ->validateConfigurationForm($form['layout_settings'], $subform_state);
}