You are here

public function ImportEntity::__construct in Content Synchronizer 8

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

Constructs an Entity object.

Parameters

array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.

string $entity_type: The type of the entity to create.

Overrides ContentEntityBase::__construct

File

src/Entity/ImportEntity.php, line 91

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function __construct(array $values, $entity_type = 'import_entity', $bundle = FALSE, array $translations = []) {
  parent::__construct($values, $entity_type, $bundle, $translations);
  $this->globalReferenceManager = \Drupal::service(GlobalReferenceManager::SERVICE_NAME);
}