You are here

public function TransactionType::setTargetEntityTypeId in Transaction 8

Sets the target entity type ID of this transaction.

Parameters

string $entity_type_id: The target entity type ID.

Return value

\Drupal\transaction\TransactionTypeInterface The called transaction type.

Overrides TransactionTypeInterface::setTargetEntityTypeId

Deprecated

in transaction:8.x-1.0 and is removed from transaction:8.x-2.0. Target entity type should be set only in constructor.

File

src/Entity/TransactionType.php, line 116

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

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