public function Entity::access

Implements AccessibleInterface::access().

Overrides AccessibleInterface::access

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 254
Definition of Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function access($operation = 'view', \Drupal\user\Plugin\Core\Entity\User $account = NULL) {
  $method = $operation . 'Access';
  return entity_access_controller($this->entityType)
    ->{$method}($this, LANGUAGE_DEFAULT, $account);
}