function views_ui_views_plugins_display_alter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 216 - Provide structure for the administrative interface to Views.
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'] = array(
'route_name' => 'entity.view.edit_form',
'route_parameters_names' => array(
'view' => 'id',
),
);
}
}