You are here

protected function SlideBaseForm::actions in Drupal Slider 8

Same name and namespace in other branches
  1. 8.2 src/Form/SlideBaseForm.php \Drupal\drupal_slider\Form\SlideBaseForm::actions()

Function actions.

Overrides EntityForm::actions

2 calls to SlideBaseForm::actions()
SlideAddForm::actions in src/Form/SlideAddForm.php
Returns the actions provided by this form.
SlideEditForm::actions in src/Form/SlideEditForm.php
Returns the actions provided by this form.
2 methods override SlideBaseForm::actions()
SlideAddForm::actions in src/Form/SlideAddForm.php
Returns the actions provided by this form.
SlideEditForm::actions in src/Form/SlideEditForm.php
Returns the actions provided by this form.

File

src/Form/SlideBaseForm.php, line 146

Class

SlideBaseForm
Class SlideBaseForm.

Namespace

Drupal\drupal_slider\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {

  // Get the basic actins from the base class.
  $actions = parent::actions($form, $form_state);

  // Change the submit button text.
  $actions['submit']['#value'] = $this
    ->t('Save');

  // Return the result.
  return $actions;
}