You are here

public function EntityInterface::getEntityTypeId in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getEntityTypeId()
  2. 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getEntityTypeId()

Gets the ID of the type of the entity.

Return value

string The entity type ID.

2 methods override EntityInterface::getEntityTypeId()
EntityBase::getEntityTypeId in core/lib/Drupal/Core/Entity/EntityBase.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();