public FieldConfigBase::getItemDefinition()
Gets the data definition of an item of the list.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface A data definition describing the list items.
Overrides ListDataDefinitionInterface::getItemDefinition
File
- core/lib/Drupal/Core/Field/FieldConfigBase.php, line 514
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\Field
Code
1 2 3 4 5 6 7 | public function getItemDefinition() { if (!isset( $this ->itemDefinition)) { $this ->itemDefinition = FieldItemDataDefinition::create( $this ) ->setSettings( $this ->getSettings()); } return $this ->itemDefinition; } |
Please login to continue.