public function FieldItemDataDefinition::getPropertyDefinitions

public FieldItemDataDefinition::getPropertyDefinitions()

Gets an array of property definitions of contained properties.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name.

Overrides ComplexDataDefinitionInterface::getPropertyDefinitions

File

core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php, line 65

Class

FieldItemDataDefinition
A typed data definition class for defining field items.

Namespace

Drupal\Core\Field\TypedData

Code

public function getPropertyDefinitions() {
  return $this->fieldDefinition->getFieldStorageDefinition()->getPropertyDefinitions();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!TypedData!FieldItemDataDefinition.php/function/FieldItemDataDefinition::getPropertyDefinitions/8.1.x