You are here

public function PluginFormBase::validateConfigurationForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::validateConfigurationForm()
  2. 9 core/lib/Drupal/Core/Plugin/PluginFormBase.php \Drupal\Core\Plugin\PluginFormBase::validateConfigurationForm()

Form validation 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::validateConfigurationForm

2 methods override PluginFormBase::validateConfigurationForm()
SystemBrandingOffCanvasForm::validateConfigurationForm in core/modules/system/src/Form/SystemBrandingOffCanvasForm.php
Form validation handler.
SystemMenuOffCanvasForm::validateConfigurationForm in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Form validation handler.

File

core/lib/Drupal/Core/Plugin/PluginFormBase.php, line 34

Class

PluginFormBase
Provides a base class for plugin forms.

Namespace

Drupal\Core\Plugin

Code

public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {

  // Validation is optional.
}