protected function ContentModerationNotificationsEditForm::actions in Content Moderation Notifications 8
Same name and namespace in other branches
- 8.3 src/Form/ContentModerationNotificationsEditForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsEditForm::actions()
- 8.2 src/Form/ContentModerationNotificationsEditForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsEditForm::actions()
Returns the actions provided by this form.
For the edit form, we only need to change the text of the submit button.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: An associative array containing the current state of the form.
Return value
array An array of supported actions for the current entity form.
Overrides ContentModerationNotificationsFormBase::actions
File
- src/
Form/ ContentModerationNotificationsEditForm.php, line 31
Class
- ContentModerationNotificationsEditForm
- Class ContentModerationNotificationsEditForm.
Namespace
Drupal\content_moderation_notifications\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Update Notification');
return $actions;
}