You are here

public function EntityBase::getEntityType in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityType()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityType()
15 calls to EntityBase::getEntityType()
ConfigEntityBase::addDependency in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
ConfigEntityBase::getConfigDependencyName in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets the configuration dependency name.
ConfigEntityBase::toArray in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets an array of all property values.
ConfigEntityBundleBase::loadDisplays in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Returns view or form displays for this bundle.
ConfigEntityBundleBase::postSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Acts on a saved entity before the insert or update hook is invoked.

... See full list

File

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

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getEntityType() {
  return $this
    ->entityTypeManager()
    ->getDefinition($this
    ->getEntityTypeId());
}