You are here

Views access plugins in Drupal 9

Same name and namespace in other branches
  1. 8 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

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

Namesort descending Location Description
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.