Views access plugins
Same name in other branches
- 9 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\views_access_plugins
- 8.9.x core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\views_access_plugins
- 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
Parent topics
File
-
core/
modules/ views/ src/ Plugin/ views/ access/ AccessPluginBase.php, line 9
Classes
Title Sort descending | File name | Summary |
---|---|---|
AccessPluginBase | core/ |
The base plugin to handle access control. |
None | core/ |
Access plugin that provides no access control at all. |
Permission | core/ |
Access plugin that provides permission-based access control. |
Role | core/ |
Access plugin that provides role-based access control. |
ViewsAccess | core/ |
Defines a views access plugins type attribute for plugin discovery. |
ViewsAccess | core/ |
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.