You are here

protected property MediaTypeAccessControlHandler::$viewLabelOperation in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/MediaTypeAccessControlHandler.php \Drupal\media\MediaTypeAccessControlHandler::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

Overrides EntityAccessControlHandler::$viewLabelOperation

File

core/modules/media/src/MediaTypeAccessControlHandler.php, line 20

Class

MediaTypeAccessControlHandler
Defines the access control handler for the "Media Type" entity type.

Namespace

Drupal\media

Code

protected $viewLabelOperation = TRUE;