function ViewDuplicateForm::actions

Same name in other branches
  1. 9 core/modules/views_ui/src/ViewDuplicateForm.php \Drupal\views_ui\ViewDuplicateForm::actions()
  2. 8.9.x core/modules/views_ui/src/ViewDuplicateForm.php \Drupal\views_ui\ViewDuplicateForm::actions()
  3. 10 core/modules/views_ui/src/ViewDuplicateForm.php \Drupal\views_ui\ViewDuplicateForm::actions()

Overrides EntityForm::actions

File

core/modules/views_ui/src/ViewDuplicateForm.php, line 87

Class

ViewDuplicateForm
Form controller for the Views duplicate form.

Namespace

Drupal\views_ui

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.