8.2.x EntityInterface.php public EntityInterface::getEntityTypeId()
8.0.x EntityInterface.php public EntityInterface::getEntityTypeId()
8.1.x EntityInterface.php public EntityInterface::getEntityTypeId()
8.3.x EntityInterface.php public EntityInterface::getEntityTypeId()

Gets the ID of the type of the entity.

Return value

string The entity type ID.

2 methods override EntityInterface::getEntityTypeId()
Entity::getEntityTypeId in core/lib/Drupal/Core/Entity/Entity.php
Gets the ID of the type of the entity.
ViewUI::getEntityTypeId in core/modules/views_ui/src/ViewUI.php
Gets the ID of the type of the entity.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 79

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function getEntityTypeId();