function EntityBase::getEntityTypeId

Gets the ID of the type of the entity.

Return value

string The entity type ID.

Overrides EntityInterface::getEntityTypeId

10 calls to EntityBase::getEntityTypeId()
ContentEntityBase::addTranslation in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::isDefaultTranslationAffectedOnly in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::isLatestRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::isLatestTranslationAffectedRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
EntityBase::getConfigDependencyName in core/lib/Drupal/Core/Entity/EntityBase.php

... See full list

File

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

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.