You are here

function acquia_contenthub_entity_insert in Acquia Content Hub 8

Implements hook_entity_insert().

File

./acquia_contenthub.module, line 29
Contains acquia_contenthub.module.

Code

function acquia_contenthub_entity_insert(EntityInterface $entity) {

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