function views_ui_confirm_delete

Form constructor for the View deletion form.

Parameters

\Drupal\views\ViewExectuable $view: The View being deleted.

See also

views_ui_confirm_delete_submit()

1 string reference to 'views_ui_confirm_delete'
views_ui_menu in drupal/core/modules/views/views_ui/views_ui.module
Implements hook_menu().

File

drupal/core/modules/views/views_ui/views_ui.module, line 727
Provide structure for the administrative interface to Views.

Code

function views_ui_confirm_delete($form, &$form_state, ViewExecutable $view) {
  $form['view'] = array(
    '#type' => 'value',
    '#value' => $view,
  );
  return confirm_form($form, t('Are you sure you want to delete the %name view?', array(
    '%name' => $view->storage
      ->getHumanName(),
  )), 'admin/structure/views', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}