You are here

public function EntityBase::getEntityTypeId in Drupal 8

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

Gets the ID of the type of the entity.

Return value

string The entity type ID.

Overrides EntityInterface::getEntityTypeId

11 calls to EntityBase::getEntityTypeId()
ContentEntityBase::addTranslation in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Adds a new translation to the translatable object.
ContentEntityBase::isDefaultTranslationAffectedOnly in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Checks if untranslatable fields should affect only the default translation.
ContentEntityBase::isLatestRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Checks if this entity is the latest revision.
ContentEntityBase::isLatestTranslationAffectedRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Checks whether this is the latest revision affecting this translation.
ContentEntityBase::label in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets the label of the entity.

... See full list

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 152

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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