public function EntityWrapper::getPropertyDefinitions

Implements ComplexDataInterface::getPropertyDefinitions().

Overrides ComplexDataInterface::getPropertyDefinitions

1 call to EntityWrapper::getPropertyDefinitions()
EntityWrapper::getPropertyDefinition in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements ComplexDataInterface::getPropertyDefinition().

File

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

Class

EntityWrapper
Defines an 'entity' data type, e.g. the computed 'entity' property of entity references.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function getPropertyDefinitions() {

  // @todo: Support getting definitions if multiple bundles are specified.
  return entity_get_controller($this->entityType)
    ->getFieldDefinitions($this->definition['constraints']);
}