public function KeyDeleteForm::validateForm in Key 8
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
- src/
Form/ KeyDeleteForm.php, line 55
Class
- KeyDeleteForm
- Builds the form to delete a Key.
Namespace
Drupal\key\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
// Allow the plugins to perform additional validation.
foreach ($this->entity
->getPlugins() as $plugin) {
if ($plugin instanceof KeyPluginDeleteFormInterface) {
$plugin
->validateDeleteForm($form, $form_state);
}
}
}