public function ImportEntity::gidIsCurrentlyImporting in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::gidIsCurrentlyImporting()
- 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::gidIsCurrentlyImporting()
Return true if the gid is currently importing and is not imported yet.
Parameters
string $gid: THe gid.
File
- src/
Entity/ ImportEntity.php, line 427
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function gidIsCurrentlyImporting($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_RUNNING;
}
return $result;
}