EntityStorageBase::$entityType

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::entityType
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::entityType
  3. 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::entityType

Information about the entity type.

The following code returns the same object:

\Drupal::entityTypeManager()->getDefinition($this->entityTypeId);

Type: \Drupal\Core\Entity\EntityTypeInterface

File

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

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

protected $entityType;

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