Views access plugins in Drupal 9
Same name and namespace in other branches
- 8 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
Name | Location | Description |
---|---|---|
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 Plugin annotation object for views access plugins. |