EntityAccessControlHandler::$viewLabelOperation
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::viewLabelOperation
- 10 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::viewLabelOperation
- 11.x core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::viewLabelOperation
Allows to grant access to just the labels.
By default, the "view label" operation falls back to "view". Set this to TRUE to allow returning different access when just listing entity labels.
Type: bool
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php, line 45
Class
- EntityAccessControlHandler
- Defines a default implementation for entity access control handler.
Namespace
Drupal\Core\EntityCode
protected $viewLabelOperation = FALSE;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.