You are here

public function EckEntity::__construct in Entity Construction Kit (ECK) 8

Same name in this branch
  1. 8 src/Entity/EckEntity.php \Drupal\eck\Entity\EckEntity::__construct()
  2. 8 src/Plugin/migrate/source/d7/EckEntity.php \Drupal\eck\Plugin\migrate\source\d7\EckEntity::__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/EckEntity.php, line 26

Class

EckEntity
Defines the ECK entity.

Namespace

Drupal\eck\Entity

Code

public function __construct(array $values, $entity_type, $bundle = FALSE, $translations = []) {
  parent::__construct($values, $entity_type, $bundle, $translations);
}