protected function SlideBaseForm::actions in Drupal Slider 8
Same name and namespace in other branches
- 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\FormCode
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;
}