You are here

function pbf_entity_update in Permissions by field 8

Implements hook_entity_update().

File

./pbf.module, line 263
Contains pbf.module.

Code

function pbf_entity_update(EntityInterface $entity) {
  if ($entity instanceof FieldableEntityInterface) {
    \Drupal::service('pbf.synchronize')
      ->synchronize('update', $entity);
  }
}