danse_moderation_notifications-1.0.x-dev/src/Form/DanseModerationNotificationsEditForm.php
src/Form/DanseModerationNotificationsEditForm.php
<?php
namespace Drupal\danse_moderation_notifications\Form;
use Drupal\Core\Form\FormStateInterface;
/**
* Class DanseModerationNotificationsEditForm.
*
* Provides the edit form for our DanseModerationNotifications entity.
*
* @package Drupal\danse_moderation_notifications\Form
*
* @ingroup danse_moderation_notifications
*/
class DanseModerationNotificationsEditForm extends DanseModerationNotificationsFormBase {
/**
* Returns the actions provided by this form.
*
* For the edit form, we only need to change the text of the submit button.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* An associative array containing the current state of the form.
*
* @return array
* An array of supported actions for the current entity form.
*/
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this->t('Update Notification');
return $actions;
}
}
