You are here

public function Log::__construct in Log entity 8

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 ContentEntityBase::__construct

File

src/Entity/Log.php, line 72
Contains \Drupal\log\Entity\Log.

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

public function __construct(array $values, $entity_type, $bundle, array $translations = []) {
  parent::__construct($values, $entity_type, $bundle, $translations);
  $this->tokenService = \Drupal::token();
}