public function FieldCollection::__construct in Field collection 8.3
Same name and namespace in other branches
- 8 src/Entity/FieldCollection.php \Drupal\field_collection\Entity\FieldCollection::__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 ConfigEntityBase::__construct
File
- src/
Entity/ FieldCollection.php, line 65
Class
- FieldCollection
- Defines the Field collection configuration entity.
Namespace
Drupal\field_collection\EntityCode
public function __construct(array $values = [], $entity_type = 'field_collection') {
parent::__construct($values, $entity_type);
$this->entityType = 'field_collection';
}