You are here

function rng_entity_insert in RNG - Events and Registrations 8

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

Implements hook_entity_insert().

File

./rng.module, line 73

Code

function rng_entity_insert(EntityInterface $entity) {

  /** @var \Drupal\rng\RngEntityModel $rng_model */
  $rng_model = \Drupal::service('rng.entity.model');
  $rng_model
    ->hook_entity_postsave($entity, FALSE);
}