EntityDataDefinition::setEntityTypeId

public EntityDataDefinition::setEntityTypeId($entity_type_id)

Sets the entity type ID.

Parameters

string $entity_type_id: The entity type to set.

Return value

$this

Overrides EntityDataDefinitionInterface::setEntityTypeId

File

core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php, line 109

Class

EntityDataDefinition
A typed data definition class for describing entities.

Namespace

Drupal\Core\Entity\TypedData

Code

public function setEntityTypeId($entity_type_id) {
  return $this->addConstraint('EntityType', $entity_type_id);
}
doc_Drupal
2016-10-29 09:04:56
Comments
Leave a Comment

Please login to continue.