function EntityDataDefinitionInterface::setEntityTypeId

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setEntityTypeId()
  2. 8.9.x core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setEntityTypeId()
  3. 10 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface::setEntityTypeId()

Sets the entity type ID.

Parameters

string $entity_type_id: The entity type to set.

Return value

$this

1 method overrides EntityDataDefinitionInterface::setEntityTypeId()
EntityDataDefinition::setEntityTypeId in core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php
Sets the entity type ID.

File

core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php, line 28

Class

EntityDataDefinitionInterface
Interface for typed data entity definitions.

Namespace

Drupal\Core\Entity\TypedData

Code

public function setEntityTypeId($entity_type_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.