public function KeyDeleteForm::submitForm in Key 8
Overrides EntityDeleteFormTrait::submitForm
File
- src/
Form/ KeyDeleteForm.php, line 76
Class
- KeyDeleteForm
- Builds the form to delete a Key.
Namespace
Drupal\key\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
// Allow the plugins to perform additional actions.
foreach ($this->entity
->getPlugins() as $plugin) {
if ($plugin instanceof KeyPluginDeleteFormInterface) {
$plugin
->submitDeleteForm($form, $form_state);
}
}
}