You are here

function rng_entity_access in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 rng.module \rng_entity_access()
  2. 3.x rng.module \rng_entity_access()

Implements hook_entity_access().

File

./rng.module, line 29

Code

function rng_entity_access(EntityInterface $entity, $operation, AccountInterface $account) {

  /** @var \Drupal\rng\RngEntityAccess $rng_access */
  $rng_access = \Drupal::service('rng.entity.access');
  return $rng_access
    ->hook_entity_access($entity, $operation, $account);
}