function SystemMenuOffCanvasForm::validateConfigurationForm

Same name and namespace in other branches
  1. 9 core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::validateConfigurationForm()
  2. 8.9.x core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::validateConfigurationForm()
  3. 11.x core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::validateConfigurationForm()

Overrides PluginFormBase::validateConfigurationForm

File

core/modules/system/src/Form/SystemMenuOffCanvasForm.php, line 130

Class

SystemMenuOffCanvasForm
The setting_tray form handler for the SystemMenuBlock.

Namespace

Drupal\system\Form

Code

public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->plugin
    ->validateConfigurationForm($form, $form_state);
  if (!$this->hasMenuOverrides()) {
    $this->getEntityForm($this->menu)
      ->validateForm($form, $form_state);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.