You are here

public function ImportEntity::gidHasAlreadyBeenImported in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::gidHasAlreadyBeenImported()
  2. 3.x 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 405

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function gidHasAlreadyBeenImported($gid) {
  return $this
    ->getEntityDataFromGid($gid)[self::ENTITY_FIELD_IMPORTING_STATUS] == self::STATUS_DONE;
}