function views_ui_views_plugins_display_alter
Same name in other branches
- 9 core/modules/views_ui/views_ui.module \views_ui_views_plugins_display_alter()
- 8.9.x core/modules/views_ui/views_ui.module \views_ui_views_plugins_display_alter()
- 10 core/modules/views_ui/views_ui.module \views_ui_views_plugins_display_alter()
Implements hook_views_plugins_display_alter().
File
-
core/
modules/ views_ui/ views_ui.module, line 242
Code
function views_ui_views_plugins_display_alter(&$plugins) {
// Attach contextual links to each display plugin. The links will point to
// paths underneath "admin/structure/views/view/{$view->id()}" (i.e., paths
// for editing and performing other contextual actions on the view).
foreach ($plugins as &$display) {
$display['contextual links']['entity.view.edit_form'] = [
'route_name' => 'entity.view.edit_form',
'route_parameters_names' => [
'view' => 'id',
],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.