function BreakLockForm::submitForm
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,
]));
}