W3cubDocs

/Drupal 8

public static function FieldItemInterface::propertyDefinitions

public static FieldItemInterface::propertyDefinitions(FieldStorageDefinitionInterface $field_definition)

Defines field item properties.

Properties that are required to constitute a valid, non-empty item should be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired().

Return value

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

See also

\Drupal\Core\Field\BaseFieldDefinition

File

core/lib/Drupal/Core/Field/FieldItemInterface.php, line 35

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition);

© 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!FieldItemInterface.php/function/FieldItemInterface::propertyDefinitions/8.1.x