You are here

function views_ui_views_plugins_display_alter in Views (for Drupal 7) 8.3

Implements hook_views_plugins_display_alter().

File

views_ui/views_ui.module, line 537
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->storage->name}" (i.e., paths
  // for editing and performing other contextual actions on the view).
  foreach ($plugins as &$display) {
    $display['contextual links']['views_ui'] = array(
      'parent path' => 'admin/structure/views/view',
      'argument properties' => array(
        'name',
      ),
    );
  }
}