You are here

private function ImportEntityManager::excludeCompareReferencedEntities in Acquia Content Hub 8

Excludes entity from comparison.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to check for differences.

Return value

null|string Entity uuid if entity is not excluded from comparison, NULL otherwise.

File

src/ImportEntityManager.php, line 201

Class

ImportEntityManager
Provides a service for managing imported entities' actions.

Namespace

Drupal\acquia_contenthub

Code

private function excludeCompareReferencedEntities(EntityInterface $entity) {

  // Currently Content Hub does not support configuration entities.
  if ($entity
    ->getEntityType()
    ->entityClassImplements('\\Drupal\\Core\\Config\\Entity\\ConfigEntityInterface')) {
    return FALSE;
  }
  return $entity
    ->uuid();
}