You are here

function feeds_para_mapper_entity_update in Feeds Paragraphs 8

Implements hook_entity_update().

File

./feeds_para_mapper.module, line 110
Allows mapping to Paragraphs fields.

Code

function feeds_para_mapper_entity_update(Drupal\Core\Entity\EntityInterface $entity) {
  if (isset($entity->fpm_targets)) {
    $rev = Drupal::service('feeds_para_mapper.revision_handler');
    $rev
      ->handle($entity);
  }
}