protected function MaestroTemplateFormBase::actions in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Form/MaestroTemplateFormBase.php \Drupal\maestro\Form\MaestroTemplateFormBase::actions()
Overrides Drupal\Core\Entity\EntityFormController::actions().
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The form's form state.
Return value
array An array of supported actions for the current entity form.
Overrides EntityForm::actions
2 calls to MaestroTemplateFormBase::actions()
- MaestroTemplateAddForm::actions in src/
Form/ MaestroTemplateAddForm.php - Returns the actions provided by this form.
- MaestroTemplateEditForm::actions in src/
Form/ MaestroTemplateEditForm.php - Returns the actions provided by this form.
2 methods override MaestroTemplateFormBase::actions()
- MaestroTemplateAddForm::actions in src/
Form/ MaestroTemplateAddForm.php - Returns the actions provided by this form.
- MaestroTemplateEditForm::actions in src/
Form/ MaestroTemplateEditForm.php - Returns the actions provided by this form.
File
- src/
Form/ MaestroTemplateFormBase.php, line 381
Class
- MaestroTemplateFormBase
- Class MaestroTemplateFormBase.
Namespace
Drupal\maestro\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Save');
return $actions;
}