public function EntityTranslation::getPropertyDefinition

Implements ComplexDataInterface::getPropertyDefinition().

Overrides ComplexDataInterface::getPropertyDefinition

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 187
Definition of Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Makes translated entity properties available via the Field API.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function getPropertyDefinition($name) {
  $definitions = $this
    ->getPropertyDefinitions();
  return isset($definitions[$name]) ? $definitions[$name] : FALSE;
}