public function EntityDataDefinition::getEntityTypeId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php \Drupal\Core\Entity\TypedData\EntityDataDefinition::getEntityTypeId()
Gets the entity type ID.
Return value
string|null The entity type ID, or NULL if the entity type is unknown.
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 107 - Contains \Drupal\Core\Entity\TypedData\EntityDataDefinition.
Class
- EntityDataDefinition
- A typed data definition class for describing entities.
Namespace
Drupal\Core\Entity\TypedDataCode
public function getEntityTypeId() {
return isset($this->definition['constraints']['EntityType']) ? $this->definition['constraints']['EntityType'] : NULL;
}