Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getEntityType()
  2. 9 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getEntityType()

Gets the entity type definition.

Return value

\Drupal\Core\Entity\EntityTypeInterface Entity type definition.

Overrides EntityStorageInterface::getEntityType

4 calls to EntityStorageBase::getEntityType()
ConfigEntityStorage::updateFromStorageRecord in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Updates a configuration entity from storage values.
ContentEntityStorageBase::createTranslation in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Constructs a new entity translation object, without permanently saving it.
ContentEntityStorageBase::getRevisionTranslationMergeSkippedFieldNames in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Returns an array of field names to skip when merging revision translations.
KeyValueEntityStorage::doCreate in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php
Performs storage-specific creation of entities.

File

core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 128

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

public function getEntityType() {
  return $this->entityType;
}