public function EntityTranslation::getPropertyDefinition

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

Overrides ComplexDataInterface::getPropertyDefinition

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 150
Contains \Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Allows accessing and updating translated entity fields.

Namespace

Drupal\Core\Entity\Field\Type

Code

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