You are here

function acquia_contenthub_entity_presave in Acquia Content Hub 8

Implements hook_entity_presave().

File

./acquia_contenthub.module, line 64
Contains acquia_contenthub.module.

Code

function acquia_contenthub_entity_presave(EntityInterface $entity) {

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