public 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
File
- core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php, line 102
Class
- EntityDataDefinition
- A typed data definition class for describing entities.
Namespace
Drupal\Core\Entity\TypedData
Code
public function getEntityTypeId() { return isset($this->definition['constraints']['EntityType']) ? $this->definition['constraints']['EntityType'] : NULL; }
Please login to continue.