Views access plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\views_access_plugins
  2. 10 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\views_access_plugins
  3. 11.x core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\views_access_plugins

Plugins to handle access checking for views.

Access plugins are responsible for controlling access to the view.

Access plugins extend \Drupal\views\Plugin\views\access\AccessPluginBase, implementing the access() and alterRouteDefinition() methods. They must be annotated with \Drupal\views\Annotation\ViewsAccess annotation, and they must be in namespace directory Plugin\views\access.

See also

Plugin API

Parent topics

File

core/modules/views/src/Plugin/views/access/AccessPluginBase.php, line 9

Classes

Title Sort descending File name Summary
AccessPluginBase core/modules/views/src/Plugin/views/access/AccessPluginBase.php The base plugin to handle access control.
None core/modules/views/src/Plugin/views/access/None.php Access plugin that provides no access control at all.
Permission core/modules/user/src/Plugin/views/access/Permission.php Access plugin that provides permission-based access control.
Role core/modules/user/src/Plugin/views/access/Role.php Access plugin that provides role-based access control.
ViewsAccess core/modules/views/src/Annotation/ViewsAccess.php Defines a Plugin annotation object for views access plugins.

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