Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Field / TypedData / FieldItemDataDefinitionInterface.php
1 <?php
2
3 namespace Drupal\Core\Field\TypedData;
4
5 use Drupal\Core\TypedData\ComplexDataDefinitionInterface;
6
7 /**
8  * Interface for field item data definitions.
9  *
10  * @ingroup typed_data
11  */
12 interface FieldItemDataDefinitionInterface extends ComplexDataDefinitionInterface {
13
14   /**
15    * Gets the field item's field definition.
16    *
17    * @return \Drupal\Core\Field\FieldDefinitionInterface
18    *   The field definition for this field item.
19    */
20   public function getFieldDefinition();
21
22   /**
23    * Sets the field item's field definition.
24    *
25    * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
26    *   The new field definition to assign to this item definition.
27    *
28    * @return static
29    *   The object itself for chaining.
30    *
31    * @internal
32    *   Should not be used in user code. It allows to overwrite the item
33    *   definition property of the cloned field definition.
34    */
35   public function setFieldDefinition($field_definition);
36
37 }