You are here

function acquia_contenthub_entity_update in Acquia Content Hub 8

Implements hook_entity_update().

File

./acquia_contenthub.module, line 38
Contains acquia_contenthub.module.

Code

function acquia_contenthub_entity_update(EntityInterface $entity) {

  /** @var \Drupal\acquia_contenthub\EntityManager $entity_manager */
  $entity_manager = \Drupal::service('acquia_contenthub.entity_manager');
  $entity_manager
    ->enqueueCandidateEntity($entity);

  /** @var \Drupal\acquia_contenthub\ImportEntityManager $import_entity_manager */
  $import_entity_manager = \Drupal::service('acquia_contenthub.import_entity_manager');
  $import_entity_manager
    ->entityUpdate($entity);
}