You are here

public function ViewsRevisions::__construct in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x 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

ViewsRevisions

Namespace

Drupal\views_revisions\Entity

Code

public function __construct(array $values, $entity_type) {
  parent::__construct($values, $entity_type);
  $this->entityTypeManager = \Drupal::service('entity_type.manager');
}