public function WebformRevisions::__construct in Config Entity Revisions 8
Same name and namespace in other branches
- 1.x 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
Namespace
Drupal\webform_revisions\EntityCode
public function __construct(array $values, $entity_type) {
parent::__construct($values, $entity_type);
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}