You are here

public function ConfigureBlockFormBase::validateForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::validateForm()
  2. 10 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::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/ConfigureBlockFormBase.php, line 211

Class

ConfigureBlockFormBase
Provides a base form for configuring a block.

Namespace

Drupal\layout_builder\Form

Code

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