From 0a4aeec2e1c4ba8e32e779a1dac722349943e5e8 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 11 Dec 2014 18:25:10 +0100 Subject: [PATCH] Issue #2388863 by chx: Entity type is definition --- core/lib/Drupal/Core/Entity/EntityStorageBase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index 4333c472938..d4daa677e30 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -32,6 +32,11 @@ abstract class EntityStorageBase extends EntityHandlerBase implements EntityStor /** * Information about the entity type. * + * The following code returns the same object: + * @code + * \Drupal::entityManager()->getDefinition($this->entityTypeId) + * @endcode + * * @var \Drupal\Core\Entity\EntityTypeInterface */ protected $entityType;