public function ContactFormRevisions::__construct in Config Entity Revisions 8.2
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 ConfigEntityRevisionsConfigEntityTrait::__construct
File
- modules/
contact_form_revisions/ src/ Entity/ ContactFormRevisions.php, line 52
Class
- ContactFormRevisions
- Class ContactFormRevisions.
Namespace
Drupal\contact_form_revisions\EntityCode
public function __construct(array $values, $entity_type) {
parent::__construct($values, $entity_type);
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}