8.2.x Entity.php public Entity::getEntityTypeId()
8.2.x Entity.php protected static Entity::getEntityTypeId($plugin_id)
8.0.x Entity.php public Entity::getEntityTypeId()
8.0.x Entity.php protected static Entity::getEntityTypeId($plugin_id)
8.1.x Entity.php public Entity::getEntityTypeId()
8.1.x Entity.php protected static Entity::getEntityTypeId($plugin_id)
8.3.x Entity.php public Entity::getEntityTypeId()
8.3.x Entity.php protected static Entity::getEntityTypeId($plugin_id)

Gets the ID of the type of the entity.

Return value

string The entity type ID.

Overrides EntityInterface::getEntityTypeId

7 calls to Entity::getEntityTypeId()
ContentEntityBase::addTranslation in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Adds a new translation to the translatable object.
ContentEntityBase::hasTranslationChanges in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Determines if the current translation of the entity has unsaved changes.
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.
Entity::toUrl in core/lib/Drupal/Core/Entity/Entity.php
Gets the URL object for the entity.

... See full list

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;
}