You are here

public function EasyEmailType::__construct in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/EasyEmailType.php \Drupal\easy_email\Entity\EasyEmailType::__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

src/Entity/EasyEmailType.php, line 186

Class

EasyEmailType
Defines the Email template entity.

Namespace

Drupal\easy_email\Entity

Code

public function __construct(array $values, $entity_type) {
  $values += [
    'recipient' => [],
    'cc' => [],
    'bcc' => [],
    'bodyHtml' => [],
    'attachment' => [],
  ];
  parent::__construct($values, $entity_type);
}