public function ConfirmDeleteEditorNoteForm::submitForm in Editor Notes 8
Form submission 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 FormInterface::submitForm
File
- src/
Form/ ConfirmDeleteEditorNoteForm.php, line 152
Class
- ConfirmDeleteEditorNoteForm
- Class ConfirmDeleteEditorNoteForm.
Namespace
Drupal\editor_note\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Remove Editor Note entity.
if ($this->editorNote) {
$this->editorNote
->delete();
}
}