function EntityDataDefinition::getEntityTypeId
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php \Drupal\Core\Entity\TypedData\EntityDataDefinition::getEntityTypeId()
- 10 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php \Drupal\Core\Entity\TypedData\EntityDataDefinition::getEntityTypeId()
- 11.x core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php \Drupal\Core\Entity\TypedData\EntityDataDefinition::getEntityTypeId()
Overrides EntityDataDefinitionInterface::getEntityTypeId
2 calls to EntityDataDefinition::getEntityTypeId()
- EntityDataDefinition::getDataType in core/
lib/ Drupal/ Core/ Entity/ TypedData/ EntityDataDefinition.php - Returns the data type of the data.
- EntityDataDefinition::getPropertyDefinitions in core/
lib/ Drupal/ Core/ Entity/ TypedData/ EntityDataDefinition.php - Gets an array of property definitions of contained properties.
File
-
core/
lib/ Drupal/ Core/ Entity/ TypedData/ EntityDataDefinition.php, line 119
Class
- EntityDataDefinition
- A typed data definition class for describing entities.
Namespace
Drupal\Core\Entity\TypedDataCode
public function getEntityTypeId() {
return $this->definition['constraints']['EntityType'] ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.