You are here

protected function TourTipForm::actions in Tour UI 8

Returns an array of supported actions for the current entity form.

1 call to TourTipForm::actions()
TourTipForm::actionsElement in src/Form/TourTipForm.php
Returns the action form element for the current entity form.

File

src/Form/TourTipForm.php, line 116

Class

TourTipForm
Form controller for the tour tip plugin edit forms.

Namespace

Drupal\tour_ui\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
  $actions['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Save'),
    '#submit' => [
      '::submitForm',
    ],
  ];
  $actions['delete'] = [
    '#type' => 'link',
    '#title' => $this
      ->t('Delete'),
    '#attributes' => [
      'class' => [
        'button',
        'button--danger',
      ],
    ],
  ];
  return $actions;
}