public function EntityNG::getPropertyDefinitions

Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().

Overrides Entity::getPropertyDefinitions

9 calls to EntityNG::getPropertyDefinitions()

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 286
Contains \Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getPropertyDefinitions() {
  if (!isset($this->fieldDefinitions)) {
    $this->fieldDefinitions = \Drupal::entityManager()
      ->getStorageController($this->entityType)
      ->getFieldDefinitions(array(
      'EntityType' => $this->entityType,
      'Bundle' => $this->bundle,
    ));
  }
  return $this->fieldDefinitions;
}