You are here

protected function MaestroTemplateAddForm::actions in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Form/MaestroTemplateAddForm.php \Drupal\maestro\Form\MaestroTemplateAddForm::actions()

Returns the actions provided by this form.

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 MaestroTemplateFormBase::actions

File

src/Form/MaestroTemplateAddForm.php, line 29

Class

MaestroTemplateAddForm
Class MaestroTemplateAddForm.

Namespace

Drupal\maestro\Form

Code

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