8.5.x Entity.php Entity::getEntityTypeId()
8.5.x Entity.php Entity::getEntityTypeId($plugin_id)
8.0.x Entity.php Entity::getEntityTypeId()
8.0.x Entity.php Entity::getEntityTypeId($plugin_id)
8.1.x Entity.php Entity::getEntityTypeId()
8.1.x Entity.php Entity::getEntityTypeId($plugin_id)
8.2.x Entity.php Entity::getEntityTypeId()
8.2.x Entity.php Entity::getEntityTypeId($plugin_id)
8.3.x Entity.php Entity::getEntityTypeId()
8.3.x Entity.php Entity::getEntityTypeId($plugin_id)
8.4.x Entity.php Entity::getEntityTypeId()
8.4.x Entity.php Entity::getEntityTypeId($plugin_id)
8.6.x Entity.php Entity::getEntityTypeId()
8.6.x Entity.php Entity::getEntityTypeId($plugin_id)

Gets the ID of the type of the entity.

Return value

string The entity type ID.

Overrides EntityInterface::getEntityTypeId

4 calls to Entity::getEntityTypeId()
ContentEntityBase::addTranslation in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Adds a new translation to the translatable object.
Entity::getConfigDependencyName in core/lib/Drupal/Core/Entity/Entity.php
Gets the configuration dependency name.
Entity::getEntityType in core/lib/Drupal/Core/Entity/Entity.php
Gets the entity type definition.
ImageStyle::getReplacementID in core/modules/image/src/Entity/ImageStyle.php
Returns the replacement ID.

File

core/lib/Drupal/Core/Entity/Entity.php, line 141

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getEntityTypeId() {
  return $this->entityTypeId;
}