function StubFieldItemBase::propertyDefinitions

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/StubFieldItemBase.php \Drupal\Tests\Core\Entity\StubFieldItemBase::propertyDefinitions()

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.

Overrides FieldItemInterface::propertyDefinitions

File

core/tests/Drupal/Tests/Core/Entity/StubFieldItemBase.php, line 22

Class

StubFieldItemBase
A stub field item base entity for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) : array {
  return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.