You are here

function rng_entity_access in RNG - Events and Registrations 8

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

Implements hook_entity_access().

File

./rng.module, line 25

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);
}