public function EntityDataDefinition::getEntityTypeId
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\TypedDataCode
public function getEntityTypeId() { return isset($this->definition['constraints']['EntityType']) ? $this->definition['constraints']['EntityType'] : NULL; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!TypedData!EntityDataDefinition.php/function/EntityDataDefinition::getEntityTypeId/8.1.x