function ReactionRuleEditForm::actions
Overrides EntityForm::actions
File
-
src/
Form/ ReactionRuleEditForm.php, line 155
Class
- ReactionRuleEditForm
- Provides a form to edit a reaction rule.
Namespace
Drupal\rules\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this->t('Save');
$actions['cancel'] = [
'#type' => 'submit',
'#limit_validation_errors' => [
[
'locked',
],
],
'#value' => $this->t('Cancel'),
'#submit' => [
'::cancel',
],
];
return $actions;
}