public function ViewsRevisions::__construct in Config Entity Revisions 1.x
Same name and namespace in other branches
- 8 modules/views_revisions/src/Entity/ViewsRevisions.php \Drupal\views_revisions\Entity\ViewsRevisions::__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
- modules/
views_revisions/ src/ Entity/ ViewsRevisions.php, line 43
Class
Namespace
Drupal\views_revisions\EntityCode
public function __construct(array $values, $entity_type) {
parent::__construct($values, $entity_type);
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}