You are here

protected function AuthorPaneAddForm::actions in Author Pane 8.3

Returns the actions provided by this form.

For our add 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 AuthorPaneFormBase::actions

File

src/Form/AuthorPaneAddForm.php, line 32
Contains \Drupal\author_pane\Form\AuthorPaneAddForm.

Class

AuthorPaneAddForm
Class AuthorPaneAddForm.

Namespace

Drupal\author_pane\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
  $actions = parent::actions($form, $form_state);
  $actions['submit']['#value'] = $this
    ->t('Create AuthorPane');
  return $actions;
}