ViewsDisplay::$contextual_links_locations

Same name in other branches
  1. 9 core/modules/views/src/Annotation/ViewsDisplay.php \Drupal\views\Annotation\ViewsDisplay::contextual_links_locations
  2. 8.9.x core/modules/views/src/Annotation/ViewsDisplay.php \Drupal\views\Annotation\ViewsDisplay::contextual_links_locations
  3. 10 core/modules/views/src/Annotation/ViewsDisplay.php \Drupal\views\Annotation\ViewsDisplay::contextual_links_locations

A list of places where contextual links should be added.

For example:

[
    'page',
    'block',
];

If you don't specify it there will be contextual links rendered for all displays of a view. If this is not set or regions have been specified, views will display an option to 'hide contextual links'. Use an empty array to disable.

Type: contextual_links_locations

File

core/modules/views/src/Annotation/ViewsDisplay.php, line 99

Class

ViewsDisplay
Defines a Plugin annotation object for views display plugins.

Namespace

Drupal\views\Annotation

Code

public $contextual_links_locations;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.