You are here

function rng_entity_access in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 rng.module \rng_entity_access()
  2. 8 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);
}