protected property 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\Entity

Code

protected $viewLabelOperation = FALSE;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityAccessControlHandler.php/property/EntityAccessControlHandler::viewLabelOperation/8.1.x