You are here

public function ImportEntity::gidHasAlreadyBeenImported in Content Synchronizer 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::gidHasAlreadyBeenImported()
  2. 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::gidHasAlreadyBeenImported()

Return true if the gid has already been imported.

Parameters

string $gid: The gid.

File

src/Entity/ImportEntity.php, line 442

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function gidHasAlreadyBeenImported($gid) {
  $entityData = $this
    ->getEntityDataFromGid($gid);
  $result = FALSE;
  if ($entityData && array_key_exists(self::ENTITY_FIELD_IMPORTING_STATUS, $entityData)) {
    $result = $entityData[self::ENTITY_FIELD_IMPORTING_STATUS] == self::STATUS_DONE;
  }
  return $result;
}