views_ui_views_plugins_display_alter(&$plugins)
Implements hook_views_plugins_display_alter().
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'), ); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views_ui!views_ui.module/function/views_ui_views_plugins_display_alter/8.1.x