3 namespace Drupal\Core\Field\TypedData;
5 use Drupal\Core\TypedData\ComplexDataDefinitionInterface;
8 * Interface for field item data definitions.
12 interface FieldItemDataDefinitionInterface extends ComplexDataDefinitionInterface {
15 * Gets the field item's field definition.
17 * @return \Drupal\Core\Field\FieldDefinitionInterface
18 * The field definition for this field item.
20 public function getFieldDefinition();
23 * Sets the field item's field definition.
25 * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
26 * The new field definition to assign to this item definition.
29 * The object itself for chaining.
32 * Should not be used in user code. It allows to overwrite the item
33 * definition property of the cloned field definition.
35 public function setFieldDefinition($field_definition);