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\TypedData

Code

public function getEntityTypeId() {
  return isset($this->definition['constraints']['EntityType']) ? $this->definition['constraints']['EntityType'] : NULL;
}
doc_Drupal
2016-10-29 09:04:56
Comments
Leave a Comment

Please login to continue.