public function EntityNG::getPropertyDefinition

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

Overrides Entity::getPropertyDefinition

5 calls to EntityNG::getPropertyDefinition()
EntityNG::getTranslatedField in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Gets a translated field.
EntityNG::language in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements \Drupal\Core\TypedData\TranslatableInterface::language().
EntityNG::__isset in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements the magic method for isset().
EntityNG::__set in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements the magic method for setting object properties.
EntityNG::__unset in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements the magic method for unset.

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function getPropertyDefinition($name) {
  if (!isset($this->fieldDefinitions)) {
    $this
      ->getPropertyDefinitions();
  }
  if (isset($this->fieldDefinitions[$name])) {
    return $this->fieldDefinitions[$name];
  }
  else {
    return FALSE;
  }
}