public function BreakLockForm::submitForm in Rules 8.3
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/ BreakLockForm.php, line 114
Class
- BreakLockForm
- Builds the form to break the lock of an edited rule.
Namespace
Drupal\rules\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->rulesUiHandler
->clearTemporaryStorage();
$form_state
->setRedirectUrl($this->rulesUiHandler
->getBaseRouteUrl());
$this
->messenger()
->addMessage($this
->t('The lock has been broken and you may now edit this @component_type.', [
'@component_type' => $this->rulesUiHandler
->getPluginDefinition()->component_type_label,
]));
}