public function EntityBCDecorator::access

Forwards the call to the decorated entity.

Overrides AccessibleInterface::access

File

drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php, line 224
Contains \Drupal\Core\Entity\EntityBCDecorator.

Class

EntityBCDecorator
Provides backwards compatible (BC) access to entity fields.

Namespace

Drupal\Core\Entity

Code

public function access($operation = 'view', AccountInterface $account = NULL) {
  return $this->decorated
    ->access($operation, $account);
}