You are here

public function WebformRevisions::__construct in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8 modules/webform_revisions/src/Entity/WebformRevisions.php \Drupal\webform_revisions\Entity\WebformRevisions::__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/webform_revisions/src/Entity/WebformRevisions.php, line 29

Class

WebformRevisions

Namespace

Drupal\webform_revisions\Entity

Code

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