You are here

public function Email::setTargetEntityTypeId in Commerce Email 8

Sets the target entity type ID.

Parameters

string $entity_type_id: The target entity type ID.

Return value

$this

Overrides EmailInterface::setTargetEntityTypeId

File

src/Entity/Email.php, line 192

Class

Email
Defines the email entity class.

Namespace

Drupal\commerce_email\Entity

Code

public function setTargetEntityTypeId($entity_type_id) {
  $this->targetEntityType = $entity_type_id;
  return $this;
}