public function LogActionFormBase::submitForm in Log entity 2.x
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
2 calls to LogActionFormBase::submitForm()
- LogCloneActionForm::submitForm in src/
Form/ LogCloneActionForm.php - Form submission handler.
- LogRescheduleActionForm::submitForm in src/
Form/ LogRescheduleActionForm.php - Form submission handler.
2 methods override LogActionFormBase::submitForm()
- LogCloneActionForm::submitForm in src/
Form/ LogCloneActionForm.php - Form submission handler.
- LogRescheduleActionForm::submitForm in src/
Form/ LogRescheduleActionForm.php - Form submission handler.
File
- src/
Form/ LogActionFormBase.php, line 123
Class
- LogActionFormBase
- Base form class for configurable actions.
Namespace
Drupal\log\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->tempStoreFactory
->get($this->actionId)
->delete($this->user
->id());
$form_state
->setRedirectUrl($this
->getCancelUrl());
}