Aller au contenu principal
node.field_image.entity.field_media_image.entity Drupal\file\Entity\File(28)
  • contents
  • Static class properties (4)
  • Available methods (140)
  • Iterator contents (11)
  • protected values -> array(11)
    'fid' => array(1)
    'x-default' => string(4) "1895"
    'uuid' => array(1)
    'x-default' => string(36) "fbf7a38e-c836-4dea-9763-ef0870634f5d"
    'langcode' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    'x-default' => string(2) "64"
    'filename' => array(1)
    'x-default' => string(31) "MathieuFarcy_BD001-683x1024.jpg"
    'uri' => array(1)
    'x-default' => string(49) "private://2019-06/MathieuFarcy_BD001-683x1024.jpg"
    'filemime' => array(1)
    'x-default' => string(10) "image/jpeg"
    'filesize' => array(1)
    'x-default' => string(5) "72192"
    'status' => array(1)
    'x-default' => string(1) "1"
    'created' => array(1)
    'x-default' => string(10) "1559666539"
    • timestamp
    • 2019-06-04 18:42:19
    'changed' => array(1)
    'x-default' => string(10) "1559666567"
    • timestamp
    • 2019-06-04 18:42:47
    protected fields -> array(2)
    'fid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(7)
    *DEPTH TOO GREAT*
    'uri' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(7)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(11)
    'fid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(7) "integer"
      protected propertyDefinitions -> array(1)
      *DEPTH TOO GREAT*
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(4) "uuid"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(8) "language"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(16) "entity_reference"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'filename' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(6) "string"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'uri' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(8) "file_uri"
      protected propertyDefinitions -> array(2)
      *DEPTH TOO GREAT*
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'filemime' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(6) "string"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'filesize' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(7) "integer"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(7) "boolean"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(7) "created"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Static class properties (1)
    • Available methods (97)
    • protected type -> string(7) "changed"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • constant CARDINALITY_UNLIMITED :: integer-1
    • public static create($type) -> static
      Creates a new field definition.
      
      @param string $type
      The type of the field.
      
      @return static
      A new field definition object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
      public static createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition) -> $this
      Creates a new field definition based upon a field storage definition.
      
      In cases where one needs a field storage definitions to act like full
      field definitions, this creates a new field definition based upon the
      (limited) information available. That way it is possible to use the field
      definition in places where a full field definition is required; e.g., with
      widgets or formatters.
      
      @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition
      The field storage definition to base the new field definition upon.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
      public __clone()
      Magic method: Implements a deep clone.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:861
      public __construct(array $values = array(), Drupal\Core\TypedData\DataDefinitionInterface $item_definition = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
      public __sleep()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:658
      public addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
      public addPropertyConstraints($name, array $constraints) -> static
      Adds constraints for a given field item property.
      
      Adds a constraint to a property of a base field item. e.g.
      @code
      // Limit the field item's value property to the range 0 through 10.
      // e.g. $node->size->value.
      $field->addPropertyConstraints('value', [
      'Range' => [
      'min' => 0,
      'max' => 10,
      ]
      ]);
      @endcode
      
      If you want to add a validation constraint that applies to the
      \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint()
      instead.
      
      Note: passing a new set of options for an existing property constraint will
      overwrite with the new options.
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint()
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:373
      public getCacheContexts()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
      public getCacheMaxAge()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
      public getCacheTags()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
      public getCardinality()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
      public getColumns()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:735
      public getConfig($bundle)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:824
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:466
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:459
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:452
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:438
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:777
      public getInitialValue() -> array
      Returns the initial value for the field.
      
      @return array
      The initial value for the field, as a numerically indexed array of items,
      each item being a property/value array (array() for no default value).
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:518
      public getInitialValueFromField() -> string|null
      Returns the name of the field that will be used for getting initial values.
      
      @return string|null
      The field name.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:554
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
      public getMainPropertyName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:632
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
      public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:587
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:614
      public getPropertyNames()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:625
      public getProvider()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
      public getSchema()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:708
      public getSetting($setting_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
      public getSettings()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
      public getTargetBundle()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:688
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:668
      public getType()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:791
      public getUniqueStorageIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:784
      public hasCustomStorage()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
      public isBaseField()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
      public isComputed()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:804
      public isDisplayConfigurable($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:445
      public isInternal()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:878
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
      public isMultiple()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
      public isQueryable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:294
      public isReadOnly()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
      public isRevisionable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
      public isStorageRequired()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:835
      public isTranslatable()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
      public offsetExists($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
      public &offsetGet($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
      public offsetSet($offset, $value)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
      public offsetUnset($offset)
      {@inheritdoc}
      
      This is for BC support only.
      @todo: Remove in https://www.drupal.org/node/1928868.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
      public setCardinality($cardinality) -> $this
      Sets the maximum number of items allowed for the field.
      
      Possible values are positive integers or
      FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
      
      Note that if the entity type that this base field is attached to is
      revisionable and the field has a cardinality higher than 1, the field is
      considered revisionable by default.
      
      @param int $cardinality
      The field cardinality.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
      public setClass($class) -> static
      Sets the class used for creating the typed data object.
      
      @param string|null $class
      The class to use.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
      public setComputed($computed) -> static
      Sets whether the data is computed.
      
      @param bool $computed
      Whether the data is computed.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
      public setConstraints(array $constraints) -> $this
      Sets an array of validation constraints.
      
      @param array $constraints
      An array of validation constraint definitions, keyed by constraint name.
      Each constraint definition can be used for instantiating
      \Symfony\Component\Validator\Constraint objects.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
      public setCustomStorage($custom_storage) -> $this
      Sets the storage behavior for this field.
      
      @param bool $custom_storage
      Pass FALSE if the storage takes care of storing the field,
      TRUE otherwise.
      
      @return $this
      
      @throws \LogicException
      Thrown if custom storage is to be set to FALSE for a computed field.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:766
      public setDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
      public setDefaultValue($value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:483
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:503
      public setDeleted($deleted) -> $this
      Sets whether the field storage is deleted.
      
      @param bool $deleted
      Whether the field storage is deleted.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:816
      public setDescription($description) -> static
      Sets the human-readable description.
      
      @param string $description
      The description to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
      public setDisplayConfigurable($display_context, $configurable) -> static
      Sets whether the display for the field can be configured.
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param bool $configurable
      Whether the display options can be configured (e.g., via the "Manage
      display" / "Manage form display" UI screens). If TRUE, the options
      specified via getDisplayOptions() act as defaults.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:426
      public setDisplayOptions($display_context, array $options) -> static
      Sets the display options for the field in forms or rendered entities.
      
      This enables generic rendering of the field with widgets / formatters,
      including automated support for "In place editing", and with optional
      configurability in the "Manage display" / "Manage form display" UI screens.
      
      Unless this method is called, the field remains invisible (or requires
      ad-hoc rendering logic).
      
      @param string $display_context
      The display context. Either 'view' or 'form'.
      @param array $options
      An array of display options. Refer to
      \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for
      a list of supported keys. The options should include at least a 'weight',
      or specify 'type' = 'hidden'. The 'default_widget' / 'default_formatter'
      for the field type will be used if no 'type' is specified.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:408
      public setInitialValue($value) -> $this
      Sets an initial value for the field.
      
      @param mixed $value
      The initial value for the field. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:537
      public setInitialValueFromField($field_name, $default_value = NULL) -> $this
      Sets a field that will be used for getting initial values.
      
      @param string $field_name
      The name of the field that will be used for getting initial values.
      @param mixed $default_value
      (optional) The default value for the field, in case the inherited value
      is NULL. This can be either:
      - a literal, in which case it will be assigned to the first property of
      the first item;
      - a numerically indexed array of items, each item being a property/value
      array;
      - a non-numerically indexed array, in which case the array is assumed to
      be a property/value array and used as the first item;
      - an empty array for no initial value.
      If the field being added is required or an entity key, it is recommended
      to provide a default value.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:578
      public setInternal($internal) -> $this
      Sets the whether the data value should be internal.
      
      @param bool $internal
      Whether the data value should be internal.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
      public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition) -> $this
      Sets the item definition.
      
      @param \Drupal\Core\TypedData\DataDefinition $definition
      A list item's data definition.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\ListDataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
      public setLabel($label) -> static
      Sets the human-readable label.
      
      @param string $label
      The label to set.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
      public setName($name) -> static
      Sets the field name.
      
      @param string $name
      The field name to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
      public setPropertyConstraints($name, array $constraints) -> static
      Sets constraints for a given field item property.
      
      Note: this overwrites any existing property constraints. If you need to
      add to the existing constraints, use
      \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints()
      
      @param string $name
      The name of the property to set constraints for.
      @param array $constraints
      The constraints to set.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:334
      public setProvider($provider) -> $this
      Sets the name of the provider of this field.
      
      @param string $provider
      The provider name to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
      public setQueryable($queryable) -> static
      Sets whether the field is queryable.
      
      @param bool $queryable
      Whether the field is queryable.
      
      @return static
      The object itself for chaining.
      
      @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.
      
      @see https://www.drupal.org/node/2856563
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:313
      public setReadOnly($read_only) -> static
      Sets whether the data is read-only.
      
      @param bool $read_only
      Whether the data is read-only.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
      public setRequired($required) -> static
      Sets whether the data is required.
      
      @param bool $required
      Whether the data is required.
      
      @return static
      The object itself for chaining.
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
      public setRevisionable($revisionable) -> $this
      Sets whether the field is revisionable.
      
      @param bool $revisionable
      Whether the field is revisionable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
      public setSettings(array $settings)
      {@inheritdoc}
      
      Note that the method does not unset existing settings not specified in the
      incoming $settings array.
      
      For example:
      @code
      // Given these are the default settings.
      $field_definition->getSettings() === [
      'fruit' => 'apple',
      'season' => 'summer',
      ];
      // Change only the 'fruit' setting.
      $field_definition->setSettings(['fruit' => 'banana']);
      // The 'season' setting persists unchanged.
      $field_definition->getSettings() === [
      'fruit' => 'banana',
      'season' => 'summer',
      ];
      @endcode
      
      For clarity, it is preferred to use setSetting() if not all available
      settings are supplied.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
      public setStorageRequired($required) -> static
      Sets whether the field storage is required.
      
      @param bool $required
      Whether the field storage is required.
      
      @return static
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:853
      public setTargetBundle($bundle) -> $this
      Sets the bundle this field is defined for.
      
      @param string|null $bundle
      The bundle, or NULL if the field is not bundle-specific.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:700
      public setTargetEntityTypeId($entity_type_id) -> $this
      Sets the ID of the type of the entity this field is attached to.
      
      @param string $entity_type_id
      The name of the target entity type to set.
      
      @return $this
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:680
      public setTranslatable($translatable) -> $this
      Sets whether the field is translatable.
      
      @param bool $translatable
      Whether the field is translatable.
      
      @return $this
      The object itself for chaining.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public toArray() -> array
      Returns all definition values as array.
      
      @return array
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected static normalizeValue(&$value, $main_property_name) -> array
      Ensure a field value is transformed into a format keyed by delta.
      
      @param mixed $value
      The raw field value to normalize.
      @param string $main_property_name
      The main field property name.
      
      @return array
      A field value normalized into a format keyed by delta.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected getFieldItemClass()
      Helper to retrieve the field item class.
      
      @deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    protected languages -> NULL
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "fr"
    protected translations -> array(1)
    'x-default' => array(2)
    'status' => integer1
    'entity' => Drupal\file\Entity\File(28) *RECURSION*
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> boolTRUE
    protected entityKeys -> array(6)
    'bundle' => string(4) "file"
    'id' => string(4) "1895"
    'label' => string(31) "MathieuFarcy_BD001-683x1024.jpg"
    'langcode' => string(2) "fr"
    'uuid' => string(36) "fbf7a38e-c836-4dea-9763-ef0870634f5d"
    'owner' => string(2) "64"
    protected translatableEntityKeys -> array(1)
    'langcode' => array(1)
    'x-default' => string(2) "fr"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> NULL
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "file"
    protected enforceIsNew -> NULL
    protected typedData -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    • contents
    • Available methods (33)
    • Iterator contents (11)
    • protected entity -> Drupal\file\Entity\File(28) *RECURSION*
      protected definition -> Drupal\Core\Entity\TypedData\EntityDataDefinition(3)
      • contents
      • Available methods (43)
      • protected propertyDefinitions -> array(11)
        *DEPTH TOO GREAT*
        protected definition -> array(1)
        *DEPTH TOO GREAT*
        protected typedDataManager -> NULL
      • public static create($entity_type_id = NULL, $bundle = NULL) -> static
        Creates a new entity definition.
        
        @param string $entity_type_id
        (optional) The ID of the entity type, or NULL if the entity type is
        unknown. Defaults to NULL.
        
        @return static
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:21
        public static createFromDataType($data_type)
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:55
        public __construct(array $values = array())
        Constructs a new data definition object.
        
        @param array $values
        (optional) If given, an array of initial values to set on the definition.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
        public __sleep()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:42
        public addConstraint($constraint_name, $options = NULL)
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:293
        public getBundles()
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:133
        public getClass()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
        public getConstraint($constraint_name)
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:270
        public getConstraints()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
        public getDataType()
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:100
        public getDescription()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
        public getEntityTypeId()
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:119
        public getLabel()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
        public getMainPropertyName()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:35
        public getPropertyDefinition($name)
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:25
        public getPropertyDefinitions()
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:69
        public getSetting($setting_name)
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
        public getSettings()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
        public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
        Gets the typed data manager.
        
        @return \Drupal\Core\TypedData\TypedDataManagerInterface
        The typed data manager.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
        public isComputed()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
        public isInternal()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:365
        public isList()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
        public isReadOnly()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
        public isRequired()
        {@inheritdoc}
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
        public offsetExists($offset)
        {@inheritdoc}
        
        This is for BC support only.
        @todo: Remove in https://www.drupal.org/node/1928868.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:304
        public &offsetGet($offset)
        {@inheritdoc}
        
        This is for BC support only.
        @todo: Remove in https://www.drupal.org/node/1928868.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:316
        public offsetSet($offset, $value)
        {@inheritdoc}
        
        This is for BC support only.
        @todo: Remove in https://www.drupal.org/node/1928868.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:329
        public offsetUnset($offset)
        {@inheritdoc}
        
        This is for BC support only.
        @todo: Remove in https://www.drupal.org/node/1928868.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:339
        public setBundles(array $bundles = NULL)
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:141
        public setClass($class) -> static
        Sets the class used for creating the typed data object.
        
        @param string|null $class
        The class to use.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
        public setComputed($computed) -> static
        Sets whether the data is computed.
        
        @param bool $computed
        Whether the data is computed.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
        public setConstraints(array $constraints) -> $this
        Sets an array of validation constraints.
        
        @param array $constraints
        An array of validation constraint definitions, keyed by constraint name.
        Each constraint definition can be used for instantiating
        \Symfony\Component\Validator\Constraint objects.
        
        @return $this
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:285
        public setDataType($type) -> static
        Sets the data type.
        
        @param string $type
        The data type to set.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
        public setDescription($description) -> static
        Sets the human-readable description.
        
        @param string $description
        The description to set.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
        public setEntityTypeId($entity_type_id)
        {@inheritdoc}
        
        Defined in <ROOT>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:126
        public setInternal($internal) -> $this
        Sets the whether the data value should be internal.
        
        @param bool $internal
        Whether the data value should be internal.
        
        @return $this
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:381
        public setLabel($label) -> static
        Sets the human-readable label.
        
        @param string $label
        The label to set.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
        public setReadOnly($read_only) -> static
        Sets whether the data is read-only.
        
        @param bool $read_only
        Whether the data is read-only.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
        public setRequired($required) -> static
        Sets whether the data is required.
        
        @param bool $required
        Whether the data is required.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
        public setSetting($setting_name, $value) -> static
        Sets a definition setting.
        
        @param string $setting_name
        The definition setting to set.
        @param mixed $value
        The value to set.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
        public setSettings(array $settings) -> static
        Sets the array of settings, as required by the used class.
        
        @param array $settings
        The array of settings.
        
        @return static
        The object itself for chaining.
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
        public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
        Sets the typed data manager.
        
        @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
        The typed data manager.
        
        @return $this
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
        public toArray() -> array
        Returns all definition values as array.
        
        @return array
        
        Inherited from Drupal\Core\TypedData\DataDefinition
        Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:348
      protected name -> NULL
      protected parent -> NULL
      protected stringTranslation -> NULL
      protected typedDataManager -> NULL
    • public static createFromEntity(Drupal\Core\Entity\EntityInterface $entity) -> static
      Creates an instance wrapping the given entity.
      
      @param \Drupal\Core\Entity\EntityInterface|null $entity
      The entity object to wrap.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:46
      public static createInstance($definition, $name = NULL, Drupal\Core\TypedData\TraversableTypedDataInterface $parent = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:45
      public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = NULL, Drupal\Core\TypedData\TypedDataInterface $parent = NULL)
      Constructs a TypedData object given its definition and context.
      
      @param \Drupal\Core\TypedData\DataDefinitionInterface $definition
      The data definition.
      @param string $name
      (optional) The name of the created property, or NULL if it is the root
      of a typed data tree. Defaults to NULL.
      @param \Drupal\Core\TypedData\TypedDataInterface $parent
      (optional) The parent object of the data property, or NULL if it is the
      root of a typed data tree. Defaults to NULL.
      
      @see \Drupal\Core\TypedData\TypedDataManager::create()
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:63
      public __sleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:197
      public applyDefaultValue($notify = true)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:152
      public get($property_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:76
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:118
      public getDataDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:86
      public getEntity() -> \Drupal\Core\Entity\EntityInterface
      Returns the wrapped entity object.
      
      @return \Drupal\Core\Entity\EntityInterface
      The wrapped entity object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:173
      public getIterator()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:163
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:154
      public getParent()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:190
      public getPluginDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:79
      public getPluginId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:72
      public getProperties($include_computed = false)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:105
      public getPropertyPath()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:172
      public getRoot()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:161
      public getString()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:145
      public getTypedDataManager() -> \Drupal\Core\TypedData\TypedDataManagerInterface
      Gets the typed data manager.
      
      @return \Drupal\Core\TypedData\TypedDataManagerInterface
      The typed data manager.
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
      public getValue()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:58
      public isEmpty()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:128
      public onChange($property_name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:135
      public set($property_name, $value, $notify = true)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:90
      public setContext($name = NULL, Drupal\Core\TypedData\TraversableTypedDataInterface $parent = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:146
      public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation) -> $this
      Sets the string translation service to use.
      
      @param \Drupal\Core\StringTranslation\TranslationInterface $translation
      The string translation service.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:118
      public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager) -> $this
      Sets the typed data manager.
      
      @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
      The typed data manager.
      
      @return $this
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
      public setValue($entity, $notify = true)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:65
      public toArray()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:118
      public validate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:130
      protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array())
      Formats a string containing a count of items.
      
      @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural()
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:79
      protected getNumberOfPlurals($langcode = NULL)
      Returns the number of plurals supported by a given language.
      
      @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals()
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:88
      protected getStringTranslation() -> \Drupal\Core\StringTranslation\TranslationInterface
      Gets the string translation service.
      
      @return \Drupal\Core\StringTranslation\TranslationInterface
      The string translation service.
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:102
      protected t($string, array $args = array(), array $options = array()) -> \Drupal\Core\StringTranslation\TranslatableMarkup
      Translates a string to the current language or to a given language.
      
      See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for
      important security information and usage guidelines.
      
      In order for strings to be localized, make them available in one of the
      ways supported by the
      @link https://www.drupal.org/node/322729 Localization API @endlink. When
      possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait
      $this->t(). Otherwise create a new
      \Drupal\Core\StringTranslation\TranslatableMarkup object.
      
      @param string $string
      A string containing the English text to translate.
      @param array $args
      (optional) An associative array of replacements to make after
      translation. Based on the first character of the key, the value is
      escaped and/or themed. See
      \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for
      details.
      @param array $options
      (optional) An associative array of additional options, with the following
      elements:
      - 'langcode' (defaults to the current language): A language code, to
      translate to a language other than what is used to display the page.
      - 'context' (defaults to the empty context): The context the source
      string belongs to. See the
      @link i18n Internationalization topic @endlink for more information
      about string contexts.
      
      @return \Drupal\Core\StringTranslation\TranslatableMarkup
      An object that, when cast to a string, returns the translated string.
      
      @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat()
      @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct()
      
      @ingroup sanitization
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
    • 'fid' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'uuid' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'langcode' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(7)
      *DEPTH TOO GREAT*
      'filename' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'uri' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'filemime' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'filesize' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'status' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'created' => Drupal\Core\Field\FieldItemList(7)
      *DEPTH TOO GREAT*
      'changed' => Drupal\Core\Field\ChangedFieldItemList(7)
      *DEPTH TOO GREAT*
    protected cacheContexts -> array(0)
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected isSyncing -> boolFALSE
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:222
    public static bundleFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle, array $base_field_definitions)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1380
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:547
    public static getDefaultEntityOwner()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:279
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:527
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:537
    public static ownerBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for entity owners.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the owner field to.
    
    @return \Drupal\Core\Field\BaseFieldDefinition[]
    An array of base field definitions.
    
    @throws \Drupal\Core\Entity\Exception\UnsupportedEntityTypeDefinitionException
    Thrown when the entity type does not implement EntityOwnerInterface or
    if it does not have an "owner" entity key.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:28
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:471
    public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:478
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:165
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:196
    public __clone()
    Magic method: Implements a deep clone.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1160
    public __construct(array $values, $entity_type, $bundle = false, $translations = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:189
    public &__get($name)
    Implements the magic method for getting object properties.
    
    @todo: A lot of code still uses non-fields (e.g. $entity->content in view
    builders) by reference. Clean that up.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1047
    public __isset($name)
    Implements the magic method for isset().
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1108
    public __set($name, $value)
    Implements the magic method for setting object properties.
    
    Uses default language always.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1074
    public __sleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:520
    public __unset($name)
    Implements the magic method for unset().
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1117
    public __wakeup()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
    public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:701
    public addCacheContexts(array $cache_contexts)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
    public addCacheTags(array $cache_tags)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
    public addCacheableDependency($other_object)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
    public addTranslation($langcode, array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:950
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:545
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1131
    public createFileUrl($relative = true)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:81
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:400
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($field_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:566
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:491
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:520
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:510
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:498
    public getChangedTime() -> int
    Gets the timestamp of the last entity change for the current translation.
    
    @return int
    The timestamp of the last entity save operation.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:32
    public getChangedTimeAcrossTranslations() -> int
    Returns the timestamp of the last entity change across all translations.
    
    @return int
    The timestamp of the last entity save operation across all
    translations.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:17
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:649
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:656
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:130
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:426
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldDefinition($name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:668
    public getFieldDefinitions()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:680
    public getFields($include_computed = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:635
    public getFileUri()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:67
    public getFilename()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:53
    public getIterator()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:661
    public getLoadedRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:313
    public getMimeType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:102
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:601
    public getOwner()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:65
    public getOwnerId()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:48
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getSize()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:116
    public getTranslatableFields($include_computed = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:648
    public getTranslation($langcode)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:847
    public getTranslationLanguages($include_default = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1010
    public getTranslationStatus($langcode)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1000
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:630
    public getUntranslated()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:882
    public hasField($field_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:559
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:252
    public hasTranslation($langcode)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:933
    public hasTranslationChanges()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1401
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:538
    public isDefaultRevision($new_value = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:335
    public isDefaultTranslation()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:415
    public isDefaultTranslationAffectedOnly()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1460
    public isLatestRevision()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:363
    public isLatestTranslationAffectedRevision()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:373
    public isNew()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:136
    public isNewRevision()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:328
    public isNewTranslation()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:943
    public isPermanent()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:137
    public isRevisionTranslationAffected()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:383
    public isRevisionTranslationAffectedEnforced()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:400
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTemporary()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:144
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:429
    public isValidationRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:496
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1246
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:715
    public link($text = NULL, $rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:270
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onChange($name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:781
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:284
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:462
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:180
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:456
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1261
    public removeTranslation($langcode)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:971
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:392
    public set($name, $value, $notify = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:624
    public setChangedTime($timestamp) -> $this
    Sets the timestamp of the last entity change for the current translation.
    
    @param int $timestamp
    The timestamp of the last entity save operation.
    
    @return $this
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setFileUri($uri)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:74
    public setFilename($filename)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:60
    public setMimeType($mime)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:109
    public setNewRevision($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:291
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:609
    public setOwner(Drupal\user\UserInterface $account)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:73
    public setOwnerId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:55
    public setPermanent()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:151
    public setRevisionTranslationAffected($affected)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:390
    public setRevisionTranslationAffectedEnforced($enforced)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:407
    public setSize($size)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:123
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTemporary()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:158
    public setValidationRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:503
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:690
    public toLink($text = NULL, $rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:278
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:189
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public updateLoadedRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:320
    public updateOriginalValues()
    Updates the original values with the interim changes.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1027
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:339
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    @see file_url_transform_relative()
    
    Defined in <ROOT>/core/modules/file/src/Entity/File.php:94
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:181
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:552
    public validate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:487
    public wasDefaultRevision()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:348
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    Invalidates an entity's cache tags upon delete.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    @param \Drupal\Core\Entity\EntityInterface[] $entities
    An array of entities.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:585
    protected clearTranslationCache()
    Clear entity translation object cache to remove stale references.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:511
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
    Use \Drupal::entityTypeManager() instead in most cases. If the needed
    method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
    deprecated \Drupal\Core\Entity\EntityManager to find the
    correct interface or service.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:78
    protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
    Gets the entity type bundle info service.
    
    @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:97
    protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
    Gets the entity type manager.
    
    @return \Drupal\Core\Entity\EntityTypeManagerInterface
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:88
    protected getEntityKey($key) -> mixed
    Gets the value of the given entity key, if defined.
    
    @param string $key
    Name of the entity key, for example id, revision or bundle.
    
    @return mixed
    The value of the entity key, NULL if not defined.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1288
    protected getFieldsToSkipFromTranslationChangesCheck() -> array
    Returns an array of field names to skip in ::hasTranslationChanges.
    
    @return array
    An array of field names.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1390
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getTranslatedField($name, $langcode) -> \Drupal\Core\Field\FieldItemListInterface
    Gets a translated field.
    
    @return \Drupal\Core\Field\FieldItemListInterface
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:578
    protected initializeTranslation($langcode) -> \Drupal\Core\Entity\EntityInterface
    Instantiates a translation object for an existing translation.
    
    The translated entity will be a clone of the current entity with the
    specified $langcode. All translations share the same field data structures
    to ensure that all of them deal with fresh data.
    
    @param string $langcode
    The language code for the requested translation.
    
    @return \Drupal\Core\Entity\EntityInterface
    The translation object. The content properties of the translation object
    are stored as references to the main entity.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:900
    protected invalidateTagsOnSave($update)
    Invalidates an entity's cache tags upon save.
    
    @param bool $update
    TRUE if the entity has been updated, or FALSE if it has been inserted.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
    Gets the language manager.
    
    @return \Drupal\Core\Language\LanguageManagerInterface
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:106
    protected linkTemplates() -> array
    Gets an array link templates.
    
    @return array
    An array of link templates containing paths.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:263
    protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
    Sets cacheability; useful for value object constructors.
    
    @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability
    The cacheability to set.
    
    @return $this
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
    protected setDefaultLangcode()
    Populates the local cache for the default language code.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:737
    protected traitGetFieldsToSkipFromTranslationChangesCheck(Drupal\Core\Entity\ContentEntityInterface $entity) -> string[]
    Returns an array of field names to skip when checking for changes.
    
    @param \Drupal\Core\Entity\ContentEntityInterface $entity
    A content entity object.
    
    @return string[]
    An array of field names.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php:21
    protected updateFieldLangcodes($langcode)
    Updates language for already instantiated fields.
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:770
    protected urlRouteParameters($rel) -> array
    Gets an array of placeholders for this entity.
    
    Individual entity classes may override this method to add additional
    placeholders if desired. If so, they should be sure to replicate the
    property caching logic.
    
    @param string $rel
    The link relationship type, for example: canonical or edit-form.
    
    @return array
    An array of URI placeholders.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:318
    protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
    Gets the UUID generator.
    
    @return \Drupal\Component\Uuid\UuidInterface
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:115
  • 'fid' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "fid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "uuid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'filename' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "filename"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uri' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uri"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'filemime' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "filemime"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'filesize' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "filesize"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "status"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "created"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(7)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "fr"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "changed"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(6)
    *DEPTH TOO GREAT*
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*

Chers à canons

FARCY-CHERSACANON

"Chers à canons", premier chapitre de "Méduse", projet de Mathieu Farcy sur le visage et l’identité chez les personnes défigurées.

Exposition présentée dans le cadre du festival Circulation(s)
Jusqu'au 30 juin 2019
Centquatre - 104 rue d'Aubervilliers 75019 Paris