You are here

function rng_entity_update in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 rng.module \rng_entity_update()
  2. 8 rng.module \rng_entity_update()

Implements hook_entity_update().

File

./rng.module, line 93

Code

function rng_entity_update(EntityInterface $entity) {

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