You are here

private function ReferenceMigrator::entityTypeShouldBeSkipped in Term reference change 8

Determines if an entire entity type should be skipped or not.

Parameters

string $entityType: The entity to check.

array[] $limit: The entity keys keyed by their entity id used to determine if the given entity should be skipped.

Return value

bool TRUE if the entity should be skipped, FALSE otherwise.

2 calls to ReferenceMigrator::entityTypeShouldBeSkipped()
ReferenceMigrator::entityShouldBeSkipped in src/ReferenceMigrator.php
Determines if an entity should be skipped or not.
ReferenceMigrator::migrateReference in src/ReferenceMigrator.php
Updates the term reference on all entities from the source to the target.

File

src/ReferenceMigrator.php, line 125

Class

ReferenceMigrator
Migrates references from one taxonomy term to the other.

Namespace

Drupal\term_reference_change

Code

private function entityTypeShouldBeSkipped($entityType, array $limit) {
  if (empty($limit)) {
    return FALSE;
  }
  if (isset($limit[$entityType])) {
    return FALSE;
  }
  return TRUE;
}