function EntityBase::getEntityTypeId
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityTypeId()
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityTypeId()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityTypeId()
- main 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
12 calls to EntityBase::getEntityTypeId()
- ContentEntityBase::addTranslation in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Adds a new translation to the translatable object.
- ContentEntityBase::createDuplicate in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Creates a duplicate of the entity.
- ContentEntityBase::hasTranslationChanges in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Determines if the current translation of the entity has unsaved changes.
- 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.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 152
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getEntityTypeId() {
return $this->entityTypeId;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.