You are here

public function ImportEntity::getArchive in Content Synchronizer 8

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

Return the Archive file.

Return value

\Drupal\file\Entity\File THe archive file.

1 call to ImportEntity::getArchive()
ImportEntity::unzipArchive in src/Entity/ImportEntity.php
Unzip archive file.

File

src/Entity/ImportEntity.php, line 187

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function getArchive() {
  return File::load($this
    ->get(self::FIELD_ARCHIVE)->target_id);
}