Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496

Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496

Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496

Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496

Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496

Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php on line 496
Notice: Undefined property: Drupal\Core\Field\Entity\BaseFieldOverride::$baseFieldDefinition in kintParser::_parse_object() (line 496 of /home/ul23sy1e/wallacerecords.com/modules/contrib/devel/kint/kint/inc/kintParser.class.php). array(29)
'28: ReflectionProperty->getValue()' => array(1)
'args' => array(1)
Drupal\Core\Field\Entity\BaseFieldOverride(35)
  • contents
  • Available methods (137)
  • protected id -> string(20) "node.cookies.promote"
    protected field_name -> string(7) "promote"
    protected field_type -> string(7) "boolean"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(26) "Promosso alla prima pagina"
    protected description -> string(0) ""
    protected settings -> array(2)
    'on_label' => string(6) "Acceso"
    'off_label' => string(6) "Spento"
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(1)
    array(1)
    'value' => integer0
    protected default_value_callback -> string(0) ""
    protected fieldStorage -> NULL
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(20) "node.cookies.promote"
    protected status -> boolTRUE
    protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(19) "base_field_override"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(1)
    'config' => array(1)
    string(17) "node.type.cookies"
    protected isSyncing -> boolFALSE
    protected baseFieldDefinition -> NULL
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
    Creates a base field override object.
    
    @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
    The base field definition to override.
    @param string $bundle
    The bundle to which the override applies.
    
    @return \Drupal\Core\Field\Entity\BaseFieldOverride
    A new base field override object.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a base field bundle override config entity.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The base field bundle override config entity if one exists for the
    provided field name, otherwise NULL.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = base_field_override)
    Constructs a BaseFieldOverride object.
    
    In most cases, base field override entities are created via
    BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
    
    @param array $values
    An array of base field bundle override properties, keyed by property
    name. The field to override is specified by referring to an existing
    field with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the bundle field override is attached to. Other array
    elements will be used to set the corresponding properties on the class;
    see the class property documentation for details.
    @param string $entity_type
    (optional) The type of the entity to create. Defaults to
    'base_field_override'.
    
    @throws \Drupal\Core\Field\FieldException
    Exception thrown if $values does not contain a field_name, entity_type or
    bundle value.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    @throws \Drupal\Core\Field\FieldException
    If the bundle is being changed.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
    Gets the base field definition.
    
    @return \Drupal\Core\Field\BaseFieldDefinition
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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:264
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    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:319
    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
'27: kintParser::_parse_object()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:496"
'args' => array(2)
Drupal\Core\Field\Entity\BaseFieldOverride(35)
  • contents
  • Available methods (137)
  • protected id -> string(20) "node.cookies.promote"
    protected field_name -> string(7) "promote"
    protected field_type -> string(7) "boolean"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(26) "Promosso alla prima pagina"
    protected description -> string(0) ""
    protected settings -> array(2)
    'on_label' => string(6) "Acceso"
    'off_label' => string(6) "Spento"
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(1)
    array(1)
    'value' => integer0
    protected default_value_callback -> string(0) ""
    protected fieldStorage -> NULL
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(20) "node.cookies.promote"
    protected status -> boolTRUE
    protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(19) "base_field_override"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(1)
    'config' => array(1)
    string(17) "node.type.cookies"
    protected isSyncing -> boolFALSE
    protected baseFieldDefinition -> NULL
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
    Creates a base field override object.
    
    @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
    The base field definition to override.
    @param string $bundle
    The bundle to which the override applies.
    
    @return \Drupal\Core\Field\Entity\BaseFieldOverride
    A new base field override object.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a base field bundle override config entity.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The base field bundle override config entity if one exists for the
    provided field name, otherwise NULL.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = base_field_override)
    Constructs a BaseFieldOverride object.
    
    In most cases, base field override entities are created via
    BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
    
    @param array $values
    An array of base field bundle override properties, keyed by property
    name. The field to override is specified by referring to an existing
    field with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the bundle field override is attached to. Other array
    elements will be used to set the corresponding properties on the class;
    see the class property documentation for details.
    @param string $entity_type
    (optional) The type of the entity to create. Defaults to
    'base_field_override'.
    
    @throws \Drupal\Core\Field\FieldException
    Exception thrown if $values does not contain a field_name, entity_type or
    bundle value.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    @throws \Drupal\Core\Field\FieldException
    If the bundle is being changed.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
    Gets the base field definition.
    
    @return \Drupal\Core\Field\BaseFieldDefinition
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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:264
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    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:319
    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
kintVariableData(8)
  • contents
  • Available methods (4)
  • Static class properties (1)
  • public type -> string(42) "Drupal\Core\Field\Entity\BaseFieldOverride"
    public access -> NULL
    public name -> NULL
    public operator -> NULL
    public size -> integer34
    public extendedValue -> NULL
    public value -> NULL
    public _alternatives -> NULL
  • protected static _detectEncoding($value)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:45
    protected static _isSequential(array $array) -> bool
    returns whether the array:
    1) is numeric and
    2) in sequence starting from zero
    
    @param array $array
    
    @return bool
    
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:78
    protected static _strlen($string, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:83
    protected static _substr($string, $start, $end, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:93
  • private $_supportedCharsets :: array(3)
    string(5) "UTF-8"
    string(12) "Windows-1252"
    string(6) "euc-jp"
'26: kintParser::factory()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:115"
'args' => array(1)
Drupal\Core\Field\Entity\BaseFieldOverride(35)
  • contents
  • Available methods (137)
  • protected id -> string(20) "node.cookies.promote"
    protected field_name -> string(7) "promote"
    protected field_type -> string(7) "boolean"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(26) "Promosso alla prima pagina"
    protected description -> string(0) ""
    protected settings -> array(2)
    'on_label' => string(6) "Acceso"
    'off_label' => string(6) "Spento"
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(1)
    array(1)
    'value' => integer0
    protected default_value_callback -> string(0) ""
    protected fieldStorage -> NULL
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(20) "node.cookies.promote"
    protected status -> boolTRUE
    protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(19) "base_field_override"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(1)
    'config' => array(1)
    string(17) "node.type.cookies"
    protected isSyncing -> boolFALSE
    protected baseFieldDefinition -> NULL
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
    Creates a base field override object.
    
    @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
    The base field definition to override.
    @param string $bundle
    The bundle to which the override applies.
    
    @return \Drupal\Core\Field\Entity\BaseFieldOverride
    A new base field override object.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a base field bundle override config entity.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The base field bundle override config entity if one exists for the
    provided field name, otherwise NULL.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = base_field_override)
    Constructs a BaseFieldOverride object.
    
    In most cases, base field override entities are created via
    BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
    
    @param array $values
    An array of base field bundle override properties, keyed by property
    name. The field to override is specified by referring to an existing
    field with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the bundle field override is attached to. Other array
    elements will be used to set the corresponding properties on the class;
    see the class property documentation for details.
    @param string $entity_type
    (optional) The type of the entity to create. Defaults to
    'base_field_override'.
    
    @throws \Drupal\Core\Field\FieldException
    Exception thrown if $values does not contain a field_name, entity_type or
    bundle value.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    @throws \Drupal\Core\Field\FieldException
    If the bundle is being changed.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
    Gets the base field definition.
    
    @return \Drupal\Core\Field\BaseFieldDefinition
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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:264
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    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:319
    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
'25: kintParser::_parse_array()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:383"
'args' => array(2)
array(29)
'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(3) "nid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(4) "uuid"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(4) "uuid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(3) "vid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(8) "language"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'display' => array(2)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(8) "langcode"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'type' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => string(17) "Tipo di contenuto"
    'required' => boolTRUE
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(4) "type"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "created"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(18) "revision_timestamp"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(12) "revision_uid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(11) "string_long"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(12) "revision_log"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'status' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(6) "status"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'default_value_callback' => string(46) "Drupal\node\Entity\Node::getDefaultEntityOwner"
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(3) "uid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'title' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'required' => boolTRUE
    'translatable' => boolTRUE
    'revisionable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(5) "title"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'created' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "created"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(7) "created"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "changed"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(7) "changed"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
  • contents
  • Available methods (137)
  • protected id -> string(20) "node.cookies.promote"
    protected field_name -> string(7) "promote"
    protected field_type -> string(7) "boolean"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(26) "Promosso alla prima pagina"
    protected description -> string(0) ""
    protected settings -> array(2)
    'on_label' => string(6) "Acceso"
    'off_label' => string(6) "Spento"
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(1)
    array(1)
    *DEPTH TOO GREAT*
    protected default_value_callback -> string(0) ""
    protected fieldStorage -> NULL
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(20) "node.cookies.promote"
    protected status -> boolTRUE
    protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(19) "base_field_override"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(1)
    'config' => array(1)
    *DEPTH TOO GREAT*
    protected isSyncing -> boolFALSE
    protected baseFieldDefinition -> NULL
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
    Creates a base field override object.
    
    @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
    The base field definition to override.
    @param string $bundle
    The bundle to which the override applies.
    
    @return \Drupal\Core\Field\Entity\BaseFieldOverride
    A new base field override object.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a base field bundle override config entity.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The base field bundle override config entity if one exists for the
    provided field name, otherwise NULL.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = base_field_override)
    Constructs a BaseFieldOverride object.
    
    In most cases, base field override entities are created via
    BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
    
    @param array $values
    An array of base field bundle override properties, keyed by property
    name. The field to override is specified by referring to an existing
    field with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the bundle field override is attached to. Other array
    elements will be used to set the corresponding properties on the class;
    see the class property documentation for details.
    @param string $entity_type
    (optional) The type of the entity to create. Defaults to
    'base_field_override'.
    
    @throws \Drupal\Core\Field\FieldException
    Exception thrown if $values does not contain a field_name, entity_type or
    bundle value.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    @throws \Drupal\Core\Field\FieldException
    If the bundle is being changed.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
    Gets the base field definition.
    
    @return \Drupal\Core\Field\BaseFieldDefinition
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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:264
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    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:319
    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
'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(6) "sticky"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'revisionable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(16) "default_langcode"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'storage_required' => boolTRUE
    'internal' => boolTRUE
    'translatable' => boolFALSE
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(16) "revision_default"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(29) "revision_translation_affected"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(3) "map"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'class' => string(55) "\Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList"
    'computed' => boolTRUE
    'translatable' => boolTRUE
    'entity_type' => string(4) "node"
    'provider' => string(7) "metatag"
    'field_name' => string(7) "metatag"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'path' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(4) "path"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'display' => array(1)
    *DEPTH TOO GREAT*
    'computed' => boolTRUE
    'provider' => string(4) "path"
    'field_name' => string(4) "path"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(9) "rh_action"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(11) "rh_redirect"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(20) "rh_redirect_response"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(27) "rh_redirect_fallback_action"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(12)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'class' => string(35) "\Drupal\token\MenuLinkFieldItemList"
    'translatable' => boolTRUE
    'internal' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'computed' => boolTRUE
    'provider' => string(5) "token"
    'field_name' => string(9) "menu_link"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(8) "language"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'initial_value' => array(1)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(19) "content_translation"
    'field_name' => string(26) "content_translation_source"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'initial_value' => array(1)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(19) "content_translation"
    'field_name' => string(28) "content_translation_outdated"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'body' => Drupal\field\Entity\FieldConfig(35)
  • contents
  • Available methods (136)
  • protected deleted -> boolFALSE
    protected fieldStorage -> NULL
    protected id -> string(17) "node.cookies.body"
    protected field_name -> string(4) "body"
    protected field_type -> string(17) "text_with_summary"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(4) "Body"
    protected description -> string(0) ""
    protected settings -> array(2)
    'display_summary' => boolTRUE
    'required_summary' => boolFALSE
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(0)
    protected default_value_callback -> string(0) ""
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(17) "node.cookies.body"
    protected status -> boolTRUE
    protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(12) "field_config"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(2)
    'config' => array(2)
    *DEPTH TOO GREAT*
    'module' => array(1)
    *DEPTH TOO GREAT*
    protected isSyncing -> boolFALSE
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a field config entity based on the entity type and field name.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The field config entity if one exists for the provided field
    name, otherwise NULL.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = field_config)
    Constructs a FieldConfig object.
    
    In most cases, Field entities are created via
    FieldConfig::create($values), where $values is the same
    parameter as in this constructor.
    
    @param array $values
    An array of field properties, keyed by property name. The
    storage associated with the field can be specified either with:
    - field_storage: the FieldStorageConfigInterface object,
    or by referring to an existing field storage in the current configuration
    with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the field is attached to. Other array elements will be
    used to set the corresponding properties on the class; see the class
    property documentation for details.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Using the Serialize interface and serialize() / unserialize() methods
    breaks entity forms in PHP 5.4.
    @todo Investigate in https://www.drupal.org/node/1977206.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
    public isDeleted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    Overrides \Drupal\Core\Entity\Entity::preSave().
    
    @throws \Drupal\Core\Field\FieldException
    If the field definition is invalid.
    @throws \Drupal\Core\Entity\EntityStorageException
    In case of failures at the configuration storage level.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    protected urlRouteParameters($rel)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
    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
'606722b1ca9d4' => boolTRUE
kintVariableData(8)
  • contents
  • Available methods (4)
  • Static class properties (1)
  • public type -> string(5) "array"
    public access -> NULL
    public name -> string(16) "fieldDefinitions"
    public operator -> NULL
    public size -> integer28
    public extendedValue -> NULL
    public value -> NULL
    public _alternatives -> NULL
  • protected static _detectEncoding($value)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:45
    protected static _isSequential(array $array) -> bool
    returns whether the array:
    1) is numeric and
    2) in sequence starting from zero
    
    @param array $array
    
    @return bool
    
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:78
    protected static _strlen($string, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:83
    protected static _substr($string, $start, $end, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:93
  • private $_supportedCharsets :: array(3)
    string(5) "UTF-8"
    string(12) "Windows-1252"
    string(6) "euc-jp"
'24: kintParser::factory()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:115"
'args' => array(2)
array(29)
'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(3) "nid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(4) "uuid"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(4) "uuid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(3) "vid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(8) "language"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'display' => array(2)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(8) "langcode"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'type' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => string(17) "Tipo di contenuto"
    'required' => boolTRUE
    'read-only' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(4) "type"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "created"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(18) "revision_timestamp"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(7)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(12) "revision_uid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(11) "string_long"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(12) "revision_log"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'status' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(6) "status"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'default_value_callback' => string(46) "Drupal\node\Entity\Node::getDefaultEntityOwner"
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(3) "uid"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'title' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'required' => boolTRUE
    'translatable' => boolTRUE
    'revisionable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(5) "title"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'created' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "created"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(7) "created"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "changed"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(7) "changed"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
  • contents
  • Available methods (137)
  • protected id -> string(20) "node.cookies.promote"
    protected field_name -> string(7) "promote"
    protected field_type -> string(7) "boolean"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(26) "Promosso alla prima pagina"
    protected description -> string(0) ""
    protected settings -> array(2)
    'on_label' => string(6) "Acceso"
    'off_label' => string(6) "Spento"
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(1)
    array(1)
    *DEPTH TOO GREAT*
    protected default_value_callback -> string(0) ""
    protected fieldStorage -> NULL
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(20) "node.cookies.promote"
    protected status -> boolTRUE
    protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(19) "base_field_override"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(1)
    'config' => array(1)
    *DEPTH TOO GREAT*
    protected isSyncing -> boolFALSE
    protected baseFieldDefinition -> NULL
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
    Creates a base field override object.
    
    @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
    The base field definition to override.
    @param string $bundle
    The bundle to which the override applies.
    
    @return \Drupal\Core\Field\Entity\BaseFieldOverride
    A new base field override object.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a base field bundle override config entity.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The base field bundle override config entity if one exists for the
    provided field name, otherwise NULL.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = base_field_override)
    Constructs a BaseFieldOverride object.
    
    In most cases, base field override entities are created via
    BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
    
    @param array $values
    An array of base field bundle override properties, keyed by property
    name. The field to override is specified by referring to an existing
    field with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the bundle field override is attached to. Other array
    elements will be used to set the corresponding properties on the class;
    see the class property documentation for details.
    @param string $entity_type
    (optional) The type of the entity to create. Defaults to
    'base_field_override'.
    
    @throws \Drupal\Core\Field\FieldException
    Exception thrown if $values does not contain a field_name, entity_type or
    bundle value.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    @throws \Drupal\Core\Field\FieldException
    If the bundle is being changed.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
    Gets the base field definition.
    
    @return \Drupal\Core\Field\BaseFieldDefinition
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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:264
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    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:319
    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
'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'display' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(6) "sticky"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'revisionable' => boolTRUE
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'provider' => string(4) "node"
    'field_name' => string(16) "default_langcode"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'storage_required' => boolTRUE
    'internal' => boolTRUE
    'translatable' => boolFALSE
    'revisionable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(16) "revision_default"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'read-only' => boolTRUE
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(4) "node"
    'field_name' => string(29) "revision_translation_affected"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(3) "map"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(9)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'class' => string(55) "\Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList"
    'computed' => boolTRUE
    'translatable' => boolTRUE
    'entity_type' => string(4) "node"
    'provider' => string(7) "metatag"
    'field_name' => string(7) "metatag"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'path' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(4) "path"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(8)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'translatable' => boolTRUE
    'display' => array(1)
    *DEPTH TOO GREAT*
    'computed' => boolTRUE
    'provider' => string(4) "path"
    'field_name' => string(4) "path"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(9) "rh_action"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(11) "rh_redirect"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "integer"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(20) "rh_redirect_response"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(6) "string"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(6)
    'field_name' => string(27) "rh_redirect_fallback_action"
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'provider' => string(7) "rh_node"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(16) "entity_reference"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(12)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'class' => string(35) "\Drupal\token\MenuLinkFieldItemList"
    'translatable' => boolTRUE
    'internal' => boolTRUE
    'display' => array(2)
    *DEPTH TOO GREAT*
    'computed' => boolTRUE
    'provider' => string(5) "token"
    'field_name' => string(9) "menu_link"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(8) "language"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'initial_value' => array(1)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(19) "content_translation"
    'field_name' => string(26) "content_translation_source"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
  • contents
  • Available methods (97)
  • Static class properties (1)
  • protected type -> string(7) "boolean"
    protected propertyDefinitions -> NULL
    protected schema -> NULL
    protected indexes -> array(0)
    protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
    • contents
    • Available methods (41)
    • protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7) *RECURSION*
      protected definition -> array(2)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • public static create($field_definition) -> static
      Creates a new field item definition.
      
      @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
      The field definition the item definition belongs to.
      
      @return static
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
      public static createFromDataType($data_type)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
      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\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:355
      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 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}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\DataDefinition
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
      public getFieldDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
      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/TypedData/FieldItemDataDefinition.php:71
      public getPropertyDefinition($name)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
      public getPropertyDefinitions()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
      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 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 setFieldDefinition($field_definition)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
      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 definition -> array(10)
    'label' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'description' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
    *DEPTH TOO GREAT*
    'default_value' => array(1)
    *DEPTH TOO GREAT*
    'initial_value' => array(1)
    *DEPTH TOO GREAT*
    'revisionable' => boolTRUE
    'translatable' => boolTRUE
    'provider' => string(19) "content_translation"
    'field_name' => string(28) "content_translation_outdated"
    'entity_type' => string(4) "node"
    'bundle' => NULL
    protected typedDataManager -> NULL
  • 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 is removed from 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 is removed from drupal:9.0.0. Use
    \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
    
    Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
  • constant CARDINALITY_UNLIMITED :: integer-1
'body' => Drupal\field\Entity\FieldConfig(35)
  • contents
  • Available methods (136)
  • protected deleted -> boolFALSE
    protected fieldStorage -> NULL
    protected id -> string(17) "node.cookies.body"
    protected field_name -> string(4) "body"
    protected field_type -> string(17) "text_with_summary"
    protected entity_type -> string(4) "node"
    protected bundle -> string(7) "cookies"
    protected label -> string(4) "Body"
    protected description -> string(0) ""
    protected settings -> array(2)
    'display_summary' => boolTRUE
    'required_summary' => boolFALSE
    protected required -> boolFALSE
    protected translatable -> boolTRUE
    protected default_value -> array(0)
    protected default_value_callback -> string(0) ""
    protected itemDefinition -> NULL
    protected constraints -> array(0)
    protected propertyConstraints -> array(0)
    protected originalId -> string(17) "node.cookies.body"
    protected status -> boolTRUE
    protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
    private isUninstalling -> boolFALSE
    protected langcode -> string(2) "it"
    protected third_party_settings -> array(0)
    protected _core -> array(0)
    protected trustedData -> boolFALSE
    protected entityTypeId -> string(12) "field_config"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(1)
    string(28) "languages:language_interface"
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected dependencies -> array(2)
    'config' => array(2)
    *DEPTH TOO GREAT*
    'module' => array(1)
    *DEPTH TOO GREAT*
    protected isSyncing -> boolFALSE
  • public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static createFromDataType($type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
    public static createFromItemType($item_type)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadByName($entity_type_id, $bundle, $field_name) -> static
    Loads a field config entity based on the entity type and field name.
    
    @param string $entity_type_id
    ID of the entity type.
    @param string $bundle
    Bundle name.
    @param string $field_name
    Name of the field.
    
    @return static
    The field config entity if one exists for the provided field
    name, otherwise NULL.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
    public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
    Helper callback for uasort() to sort configuration entities by weight and label.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
    public __construct(array $values, $entity_type = field_config)
    Constructs a FieldConfig object.
    
    In most cases, Field entities are created via
    FieldConfig::create($values), where $values is the same
    parameter as in this constructor.
    
    @param array $values
    An array of field properties, keyed by property name. The
    storage associated with the field can be specified either with:
    - field_storage: the FieldStorageConfigInterface object,
    or by referring to an existing field storage in the current configuration
    with:
    - field_name: The field name.
    - entity_type: The entity type.
    Additionally, a 'bundle' property is required to indicate the entity
    bundle to which the field is attached to. Other array elements will be
    used to set the corresponding properties on the class; see the class
    property documentation for details.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
    public __sleep()
    Implements the magic __sleep() method.
    
    Using the Serialize interface and serialize() / unserialize() methods
    breaks entity forms in PHP 5.4.
    @todo Investigate in https://www.drupal.org/node/1977206.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
    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\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
    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 addConstraint($constraint_name, $options = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
    public addPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
    public bundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public calculateDependencies()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
    public createDuplicate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
    public delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    public disable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
    public enable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
    public enforceIsNew($value = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
    public get($property_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
    public getCacheContexts()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
    public getClass()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
    public getConfig($bundle)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
    public getConfigDependencyKey()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
    public getConstraint($constraint_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
    public getConstraints()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
    public getDataType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
    public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
    public getDefaultValueCallback()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
    public getDefaultValueLiteral()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
    public getDependencies()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
    public getDescription()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
    public getDisplayOptions($display_context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    public getEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
    public getFieldStorageDefinition()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
    public getItemDefinition()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
    public getLabel()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
    public getName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
    public getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
    public getSetting($setting_name)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
    public getSettings()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
    public getTargetBundle()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
    public getTargetEntityTypeId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
    public getThirdPartyProviders()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
    public getThirdPartySetting($module, $key, $default = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
    public getThirdPartySettings($module)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
    public getType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    public getUniqueIdentifier()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
    public hasLinkTemplate($rel)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
    public hasTrustedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
    public id()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
    public isComputed()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
    public isDeleted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
    public isDisplayConfigurable($context)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
    public isInstallable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
    public isInternal()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
    public isList()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
    public isNew()
    Overrides Entity::isNew().
    
    EntityInterface::enforceIsNew() is only supported for newly created
    configuration entities but has no effect after saving, since each
    configuration entity is unique.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
    public isReadOnly()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
    public isRequired()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    public isTranslatable()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
    public isUninstalling()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
    public label()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
    public language()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
    public link($text = NULL, $rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
    public mergeCacheMaxAge($max_age)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public onDependencyRemoval(array $dependencies)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    Overrides \Drupal\Core\Entity\Entity::preSave().
    
    @throws \Drupal\Core\Field\FieldException
    If the field definition is invalid.
    @throws \Drupal\Core\Entity\EntityStorageException
    In case of failures at the configuration storage level.
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
    public save()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
    public set($property_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
    public setConstraints(array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
    public setDefaultValue($value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
    public setDefaultValueCallback($callback)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
    public setDescription($description)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
    public setLabel($label)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
    public setOriginalId($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
    public setPropertyConstraints($name, array $constraints)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
    public setRequired($required)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
    public setSetting($setting_name, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
    public setSettings(array $settings)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
    public setStatus($status)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setThirdPartySetting($module, $key, $value)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
    public setTranslatable($translatable)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
    public setUninstalling($uninstalling)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
    public status()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
    public toArray()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
    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:279
    public toUrl($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
    public traitSleep()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
    public trustData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
    public unsetThirdPartySetting($module, $key)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
    public uriRelationships()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
    public url($rel = edit-form, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
    public urlInfo($rel = edit-form, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
    public uuid()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
    protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
    Gets the configuration manager.
    
    @return \Drupal\Core\Config\ConfigManager
    The configuration manager.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
    protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
    {@inheritdoc}
    
    Override to never invalidate the individual entities' cache tags; the
    config system already invalidates them.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
    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.
    
    Inherited from Drupal\Core\Field\FieldConfigBase
    Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
    protected addDependencies(array $dependencies)
    Adds multiple dependencies.
    
    @param array $dependencies
    An array of dependencies keyed by the type of dependency. One example:
    @code
    array(
    'module' => array(
    'node',
    'field',
    'image',
    ),
    );
    @endcode
    
    @see \Drupal\Core\Entity\DependencyTrait::addDependency
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
    protected addDependency($type, $name)
    Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
    
    Note that this function should only be called from implementations of
    \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
    as dependencies are recalculated during every entity save.
    
    @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
    protected addDependencyTrait($type, $name) -> $this
    Adds a dependency.
    
    @param string $type
    Type of dependency being added: 'module', 'theme', 'config', 'content'.
    @param string $name
    If $type is 'module' or 'theme', the name of the module or theme. If
    $type is 'config' or 'content', the result of
    EntityInterface::getConfigDependencyName().
    
    @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
    
    @return $this
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
    protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
    Calculates and adds dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
    protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
    Gets the entity manager.
    
    @return \Drupal\Core\Entity\EntityManagerInterface
    
    @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
    Calculates and returns dependencies of a specific plugin instance.
    
    Dependencies are added for the module that provides the plugin, as well
    as any dependencies declared by the instance's calculateDependencies()
    method, if it implements
    \Drupal\Component\Plugin\DependentPluginInterface.
    
    @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
    The plugin instance.
    
    @return array
    An array of dependencies keyed by the type of dependency.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
    protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
    Gets the typed config manager.
    
    @return \Drupal\Core\Config\TypedConfigManagerInterface
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
    protected invalidateTagsOnSave($update)
    {@inheritdoc}
    
    Override to never invalidate the entity's cache tag; the config system
    already invalidates it.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
    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()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
    protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
    Wraps the module handler.
    
    @return \Drupal\Core\Extension\ModuleHandlerInterface
    The module handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
    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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
    Wraps the theme handler.
    
    @return \Drupal\Core\Extension\ThemeHandlerInterface
    The theme handler.
    
    Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
    protected urlRouteParameters($rel)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
    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
'606722b1ca9d4' => boolTRUE
string(16) "fieldDefinitions"
'23: kintParser::_parse_object()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:475"
'args' => array(2)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    'x-default' => string(4) "1190"
    'vid' => array(1)
    'x-default' => string(4) "1218"
    'type' => array(1)
    'x-default' => string(7) "cookies"
    'uuid' => array(1)
    'x-default' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    'langcode' => array(1)
    'x-default' => string(2) "it"
    'revision_uid' => array(1)
    'x-default' => string(1) "1"
    'revision_timestamp' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'revision_log' => array(1)
    'x-default' => NULL
    'revision_default' => array(1)
    'x-default' => string(1) "1"
    'isDefaultRevision' => array(1)
    'x-default' => string(1) "1"
    'status' => array(1)
    'x-default' => string(1) "1"
    'uid' => array(1)
    'x-default' => string(1) "1"
    'title' => array(1)
    'x-default' => string(30) "Informativa estesa sui Cookies"
    'created' => array(1)
    'x-default' => string(10) "1589970820"
    • timestamp
    • 2020-05-20 12:33:40
    'changed' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'promote' => array(1)
    'x-default' => string(1) "0"
    'sticky' => array(1)
    'x-default' => string(1) "0"
    'default_langcode' => array(1)
    'x-default' => string(1) "1"
    'revision_translation_affected' => array(1)
    'x-default' => string(1) "1"
    'content_translation_source' => array(1)
    'x-default' => string(3) "und"
    'content_translation_outdated' => array(1)
    'x-default' => string(1) "0"
    'rh_action' => array(1)
    'x-default' => string(14) "bundle_default"
    'rh_redirect' => array(1)
    'x-default' => NULL
    'rh_redirect_response' => array(1)
    'x-default' => string(3) "301"
    'rh_redirect_fallback_action' => array(1)
    'x-default' => NULL
    'body' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(0)
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(7)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(11) "string_long"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'title' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
    • contents
    • Available methods (137)
    • protected id -> string(20) "node.cookies.promote"
      protected field_name -> string(7) "promote"
      protected field_type -> string(7) "boolean"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(26) "Promosso alla prima pagina"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(1)
      *DEPTH TOO GREAT*
      protected default_value_callback -> string(0) ""
      protected fieldStorage -> NULL
      protected itemDefinition -> NULL
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(20) "node.cookies.promote"
      protected status -> boolTRUE
      protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(19) "base_field_override"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(1)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
      protected baseFieldDefinition -> NULL
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
      Creates a base field override object.
      
      @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
      The base field definition to override.
      @param string $bundle
      The bundle to which the override applies.
      
      @return \Drupal\Core\Field\Entity\BaseFieldOverride
      A new base field override object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a base field bundle override config entity.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The base field bundle override config entity if one exists for the
      provided field name, otherwise NULL.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = base_field_override)
      Constructs a BaseFieldOverride object.
      
      In most cases, base field override entities are created via
      BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
      
      @param array $values
      An array of base field bundle override properties, keyed by property
      name. The field to override is specified by referring to an existing
      field with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the bundle field override is attached to. Other array
      elements will be used to set the corresponding properties on the class;
      see the class property documentation for details.
      @param string $entity_type
      (optional) The type of the entity to create. Defaults to
      'base_field_override'.
      
      @throws \Drupal\Core\Field\FieldException
      Exception thrown if $values does not contain a field_name, entity_type or
      bundle value.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      @throws \Drupal\Core\Field\FieldException
      If the bundle is being changed.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
      Gets the base field definition.
      
      @return \Drupal\Core\Field\BaseFieldDefinition
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
      protected getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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:264
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      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:319
      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
    'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(3) "map"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'path' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "path"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(12)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'body' => Drupal\field\Entity\FieldConfig(35)
    • contents
    • Available methods (136)
    • protected deleted -> boolFALSE
      protected fieldStorage -> NULL
      protected id -> string(17) "node.cookies.body"
      protected field_name -> string(4) "body"
      protected field_type -> string(17) "text_with_summary"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(4) "Body"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(0)
      protected default_value_callback -> string(0) ""
      protected itemDefinition -> NULL
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(17) "node.cookies.body"
      protected status -> boolTRUE
      protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(12) "field_config"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(2)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a field config entity based on the entity type and field name.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The field config entity if one exists for the provided field
      name, otherwise NULL.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = field_config)
      Constructs a FieldConfig object.
      
      In most cases, Field entities are created via
      FieldConfig::create($values), where $values is the same
      parameter as in this constructor.
      
      @param array $values
      An array of field properties, keyed by property name. The
      storage associated with the field can be specified either with:
      - field_storage: the FieldStorageConfigInterface object,
      or by referring to an existing field storage in the current configuration
      with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the field is attached to. Other array elements will be
      used to set the corresponding properties on the class; see the class
      property documentation for details.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Using the Serialize interface and serialize() / unserialize() methods
      breaks entity forms in PHP 5.4.
      @todo Investigate in https://www.drupal.org/node/1977206.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      Overrides \Drupal\Core\Entity\Entity::preSave().
      
      @throws \Drupal\Core\Field\FieldException
      If the field definition is invalid.
      @throws \Drupal\Core\Entity\EntityStorageException
      In case of failures at the configuration storage level.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      protected urlRouteParameters($rel)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
      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
    protected languages -> array(4)
    'en' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "English"
      protected id -> string(2) "en"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'it' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "Italian"
      protected id -> string(2) "it"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'und' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(13) "Not specified"
      protected id -> string(3) "und"
      protected direction -> string(3) "ltr"
      protected weight -> integer2
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'zxx' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(14) "Not applicable"
      protected id -> string(3) "zxx"
      protected direction -> string(3) "ltr"
      protected weight -> integer3
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "it"
    protected translations -> array(1)
    'x-default' => array(1)
    'status' => integer1
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> string(1) "1"
    protected entityKeys -> array(4)
    'bundle' => string(7) "cookies"
    'id' => string(4) "1190"
    'revision' => string(4) "1218"
    'uuid' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    protected translatableEntityKeys -> array(8)
     x-default
    "label""Informativa estesa sui Cookies"
    "langcode""it"
    "status""1"
    "published""1"
    "uid""1"
    "owner""1"
    "default_langcode""1"
    "revision_translation_affected""1"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> string(4) "1218"
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "node"
    protected enforceIsNew -> NULL
    protected typedData -> NULL
    protected cacheContexts -> array(0)
    protected cacheTags -> array(0)
    protected cacheMaxAge -> integer-1
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected isSyncing -> boolFALSE
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:277
    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:1381
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static getCurrentUserId() -> array
    Default value callback for 'uid' base field definition.
    
    @see ::baseFieldDefinitions()
    
    @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
    be removed before 9.0.0.
    
    @return array
    An array of default values.
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:392
    public static getDefaultEntityOwner() -> mixed
    Default value callback for 'owner' base field.
    
    @return mixed
    A default value for the owner field.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    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 $nodes)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:178
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:162
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for publishing status.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the publishing status 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 EntityPublishedInterface
    or if it does not have a "published" entity key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\FieldDefinitionInterface[]
    Provides revision-related base field definitions for an entity type.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    
    @return \Drupal\Core\Field\FieldDefinitionInterface[]
    An array of base field definitions for the entity type, keyed by field
    name.
    
    @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions()
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:27
    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 = view, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:193
    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 delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    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:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:513
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:670
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:677
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:216
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    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 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 getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:615
    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 getRevisionAuthor()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:261
    public getRevisionCreationTime()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:58
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getRevisionLogMessage()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:103
    public getRevisionUser()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:73
    public getRevisionUserId()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:88
    public getTitle()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:201
    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 getType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:186
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    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:253
    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:1402
    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:1461
    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 isPromoted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:231
    public isPublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    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 isSticky()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:246
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    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:271
    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}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:139
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:102
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:124
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1262
    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:393
    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
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setCreatedTime($timestamp)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:223
    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:623
    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 setPromoted($promoted)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:238
    public setPublished($published = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setRevisionAuthorId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:269
    public setRevisionCreationTime($timestamp)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:65
    public setRevisionLogMessage($revision_log_message)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:110
    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 setRevisionUser(Drupal\user\UserInterface $account)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:80
    public setRevisionUserId($user_id)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:95
    public setSticky($sticky)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:253
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTitle($title)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:208
    public setUnpublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:71
    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:279
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:190
    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:340
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:292
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:182
    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 getRevisionMetadataKey(Drupal\Core\Entity\EntityTypeInterface $entity_type, $key) -> string
    Gets the name of a revision metadata field.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    A content entity type definition.
    @param string $key
    The revision metadata key to get, must be one of 'revision_created',
    'revision_user' or 'revision_log_message'.
    
    @return string
    The name of the field for the specified $key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:127
    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:598
    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 is removed from 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:1289
    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:1391
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    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:573
    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:264
    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:319
    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
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
    constant NOT_PUBLISHED :: integer0
    constant PUBLISHED :: integer1
    constant NOT_PROMOTED :: integer0
    constant PROMOTED :: integer1
    constant NOT_STICKY :: integer0
    constant STICKY :: integer1
  • 'nid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "nid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "uuid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "vid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "type"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(18) "revision_timestamp"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_log"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "status"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(5) "title"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "created"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "changed"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\Entity\BaseFieldOverride(35)
    *DEPTH TOO GREAT*
    protected name -> string(7) "promote"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "sticky"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "default_langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "revision_default"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(29) "revision_translation_affected"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "metatag"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'path' => Drupal\pathauto\PathautoFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "path"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'rh_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "rh_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(11) "rh_redirect"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(20) "rh_redirect_response"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(27) "rh_redirect_fallback_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "menu_link"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(26) "content_translation_source"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(28) "content_translation_outdated"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'body' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\field\Entity\FieldConfig(35)
    *DEPTH TOO GREAT*
    protected name -> string(4) "body"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
kintVariableData(8)
  • contents
  • Available methods (4)
  • Static class properties (1)
  • public type -> string(23) "Drupal\node\Entity\Node"
    public access -> NULL
    public name -> string(6) "$input"
    public operator -> NULL
    public size -> integer3
    public extendedValue -> NULL
    public value -> NULL
    public _alternatives -> NULL
  • protected static _detectEncoding($value)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:45
    protected static _isSequential(array $array) -> bool
    returns whether the array:
    1) is numeric and
    2) in sequence starting from zero
    
    @param array $array
    
    @return bool
    
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:78
    protected static _strlen($string, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:83
    protected static _substr($string, $start, $end, $encoding = NULL)
    Defined in <ROOT>/modules/contrib/devel/kint/kint/inc/kintVariableData.class.php:93
  • private $_supportedCharsets :: array(3)
    string(5) "UTF-8"
    string(12) "Windows-1252"
    string(6) "euc-jp"
'22: kintParser::factory()' => array(2)
'file' => string(60) "modules/contrib/devel/kint/kint/inc/kintParser.class.php:115"
'args' => array(2)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    'x-default' => string(4) "1190"
    'vid' => array(1)
    'x-default' => string(4) "1218"
    'type' => array(1)
    'x-default' => string(7) "cookies"
    'uuid' => array(1)
    'x-default' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    'langcode' => array(1)
    'x-default' => string(2) "it"
    'revision_uid' => array(1)
    'x-default' => string(1) "1"
    'revision_timestamp' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'revision_log' => array(1)
    'x-default' => NULL
    'revision_default' => array(1)
    'x-default' => string(1) "1"
    'isDefaultRevision' => array(1)
    'x-default' => string(1) "1"
    'status' => array(1)
    'x-default' => string(1) "1"
    'uid' => array(1)
    'x-default' => string(1) "1"
    'title' => array(1)
    'x-default' => string(30) "Informativa estesa sui Cookies"
    'created' => array(1)
    'x-default' => string(10) "1589970820"
    • timestamp
    • 2020-05-20 12:33:40
    'changed' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'promote' => array(1)
    'x-default' => string(1) "0"
    'sticky' => array(1)
    'x-default' => string(1) "0"
    'default_langcode' => array(1)
    'x-default' => string(1) "1"
    'revision_translation_affected' => array(1)
    'x-default' => string(1) "1"
    'content_translation_source' => array(1)
    'x-default' => string(3) "und"
    'content_translation_outdated' => array(1)
    'x-default' => string(1) "0"
    'rh_action' => array(1)
    'x-default' => string(14) "bundle_default"
    'rh_redirect' => array(1)
    'x-default' => NULL
    'rh_redirect_response' => array(1)
    'x-default' => string(3) "301"
    'rh_redirect_fallback_action' => array(1)
    'x-default' => NULL
    'body' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(28)
    'nid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'type' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'status' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'title' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'created' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    'x-default' => Drupal\Core\Field\ChangedFieldItemList(9)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'metatag' => array(1)
    'x-default' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    *DEPTH TOO GREAT*
    'path' => array(1)
    'x-default' => Drupal\pathauto\PathautoFieldItemList(10)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'menu_link' => array(1)
    'x-default' => Drupal\token\MenuLinkFieldItemList(10)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'body' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "uuid"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(11) "string_long"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'title' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "changed"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
    • contents
    • Available methods (137)
    • protected baseFieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7)
      *DEPTH TOO GREAT*
      protected id -> string(20) "node.cookies.promote"
      protected field_name -> string(7) "promote"
      protected field_type -> string(7) "boolean"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(26) "Promosso alla prima pagina"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(1)
      *DEPTH TOO GREAT*
      protected default_value_callback -> string(0) ""
      protected fieldStorage -> NULL
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(20) "node.cookies.promote"
      protected status -> boolTRUE
      protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(19) "base_field_override"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(1)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
      Creates a base field override object.
      
      @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
      The base field definition to override.
      @param string $bundle
      The bundle to which the override applies.
      
      @return \Drupal\Core\Field\Entity\BaseFieldOverride
      A new base field override object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a base field bundle override config entity.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The base field bundle override config entity if one exists for the
      provided field name, otherwise NULL.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = base_field_override)
      Constructs a BaseFieldOverride object.
      
      In most cases, base field override entities are created via
      BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
      
      @param array $values
      An array of base field bundle override properties, keyed by property
      name. The field to override is specified by referring to an existing
      field with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the bundle field override is attached to. Other array
      elements will be used to set the corresponding properties on the class;
      see the class property documentation for details.
      @param string $entity_type
      (optional) The type of the entity to create. Defaults to
      'base_field_override'.
      
      @throws \Drupal\Core\Field\FieldException
      Exception thrown if $values does not contain a field_name, entity_type or
      bundle value.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      @throws \Drupal\Core\Field\FieldException
      If the bundle is being changed.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
      Gets the base field definition.
      
      @return \Drupal\Core\Field\BaseFieldDefinition
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
      protected getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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:264
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      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:319
      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
    'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(3) "map"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'path' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "path"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(12)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'body' => Drupal\field\Entity\FieldConfig(35)
    • contents
    • Available methods (136)
    • protected deleted -> boolFALSE
      protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig(33)
      *DEPTH TOO GREAT*
      protected id -> string(17) "node.cookies.body"
      protected field_name -> string(4) "body"
      protected field_type -> string(17) "text_with_summary"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(4) "Body"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(0)
      protected default_value_callback -> string(0) ""
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(17) "node.cookies.body"
      protected status -> boolTRUE
      protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(12) "field_config"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(2)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a field config entity based on the entity type and field name.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The field config entity if one exists for the provided field
      name, otherwise NULL.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = field_config)
      Constructs a FieldConfig object.
      
      In most cases, Field entities are created via
      FieldConfig::create($values), where $values is the same
      parameter as in this constructor.
      
      @param array $values
      An array of field properties, keyed by property name. The
      storage associated with the field can be specified either with:
      - field_storage: the FieldStorageConfigInterface object,
      or by referring to an existing field storage in the current configuration
      with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the field is attached to. Other array elements will be
      used to set the corresponding properties on the class; see the class
      property documentation for details.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Using the Serialize interface and serialize() / unserialize() methods
      breaks entity forms in PHP 5.4.
      @todo Investigate in https://www.drupal.org/node/1977206.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      Overrides \Drupal\Core\Entity\Entity::preSave().
      
      @throws \Drupal\Core\Field\FieldException
      If the field definition is invalid.
      @throws \Drupal\Core\Entity\EntityStorageException
      In case of failures at the configuration storage level.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      protected urlRouteParameters($rel)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
      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
    protected languages -> array(4)
    'en' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "English"
      protected id -> string(2) "en"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'it' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "Italian"
      protected id -> string(2) "it"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'und' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(13) "Not specified"
      protected id -> string(3) "und"
      protected direction -> string(3) "ltr"
      protected weight -> integer2
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'zxx' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(14) "Not applicable"
      protected id -> string(3) "zxx"
      protected direction -> string(3) "ltr"
      protected weight -> integer3
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "it"
    protected translations -> array(1)
    'x-default' => array(2)
    'status' => integer1
    'entity' => Drupal\node\Entity\Node(29) *RECURSION*
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> string(1) "1"
    protected entityKeys -> array(4)
    'bundle' => string(7) "cookies"
    'id' => string(4) "1190"
    'revision' => string(4) "1218"
    'uuid' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    protected translatableEntityKeys -> array(8)
     x-default
    "label""Informativa estesa sui Cookies"
    "langcode""it"
    "status""1"
    "published""1"
    "uid""1"
    "owner""1"
    "default_langcode""1"
    "revision_translation_affected""1"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> string(4) "1218"
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "node"
    protected enforceIsNew -> NULL
    protected typedData -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    • contents
    • Available methods (34)
    • Iterator contents (28)
    • protected entity -> Drupal\node\Entity\Node(29) *RECURSION*
      protected definition -> Drupal\Core\Entity\TypedData\EntityDataDefinition(3)
      • contents
      • Available methods (43)
      • protected propertyDefinitions -> array(28)
        *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 _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      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:46
      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:64
      public __sleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public __wakeup()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
      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:119
      public getDataDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:87
      public getEntity() -> \Drupal\Core\Entity\EntityInterface
      Returns the wrapped entity object.
      
      @return \Drupal\Core\Entity\EntityInterface
      The wrapped entity object. If the entity is translatable and a specific
      translation is required, always request it by calling ::getTranslation()
      or ::getUntranslated() as the language of the returned object is not
      defined.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:176
      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:155
      public getParent()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:191
      public getPluginDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:80
      public getPluginId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:73
      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:173
      public getRoot()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:162
      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:147
      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:131
      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
    • 'nid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uuid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'vid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_log' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'status' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'title' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'created' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
      *DEPTH TOO GREAT*
      'promote' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'sticky' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'default_langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_default' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
      *DEPTH TOO GREAT*
      'path' => Drupal\pathauto\PathautoFieldItemList(10)
      *DEPTH TOO GREAT*
      'rh_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
      *DEPTH TOO GREAT*
      'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'body' => Drupal\Core\Field\FieldItemList(9)
      *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
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:277
    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:1381
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static getCurrentUserId() -> array
    Default value callback for 'uid' base field definition.
    
    @see ::baseFieldDefinitions()
    
    @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
    be removed before 9.0.0.
    
    @return array
    An array of default values.
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:392
    public static getDefaultEntityOwner() -> mixed
    Default value callback for 'owner' base field.
    
    @return mixed
    A default value for the owner field.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    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 $nodes)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:178
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:162
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for publishing status.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the publishing status 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 EntityPublishedInterface
    or if it does not have a "published" entity key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\FieldDefinitionInterface[]
    Provides revision-related base field definitions for an entity type.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    
    @return \Drupal\Core\Field\FieldDefinitionInterface[]
    An array of base field definitions for the entity type, keyed by field
    name.
    
    @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions()
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:27
    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 = view, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:193
    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 delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    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:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:513
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:670
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:677
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:216
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    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 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 getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:615
    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 getRevisionAuthor()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:261
    public getRevisionCreationTime()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:58
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getRevisionLogMessage()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:103
    public getRevisionUser()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:73
    public getRevisionUserId()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:88
    public getTitle()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:201
    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 getType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:186
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    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:253
    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:1402
    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:1461
    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 isPromoted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:231
    public isPublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    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 isSticky()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:246
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    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:271
    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}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:139
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:102
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:124
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1262
    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:393
    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
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setCreatedTime($timestamp)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:223
    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:623
    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 setPromoted($promoted)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:238
    public setPublished($published = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setRevisionAuthorId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:269
    public setRevisionCreationTime($timestamp)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:65
    public setRevisionLogMessage($revision_log_message)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:110
    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 setRevisionUser(Drupal\user\UserInterface $account)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:80
    public setRevisionUserId($user_id)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:95
    public setSticky($sticky)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:253
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTitle($title)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:208
    public setUnpublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:71
    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:279
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:190
    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:340
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:292
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:182
    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 getRevisionMetadataKey(Drupal\Core\Entity\EntityTypeInterface $entity_type, $key) -> string
    Gets the name of a revision metadata field.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    A content entity type definition.
    @param string $key
    The revision metadata key to get, must be one of 'revision_created',
    'revision_user' or 'revision_log_message'.
    
    @return string
    The name of the field for the specified $key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:127
    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:598
    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 is removed from 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:1289
    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:1391
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    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:573
    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:264
    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:319
    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
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
    constant NOT_PUBLISHED :: integer0
    constant PUBLISHED :: integer1
    constant NOT_PROMOTED :: integer0
    constant PROMOTED :: integer1
    constant NOT_STICKY :: integer0
    constant STICKY :: integer1
  • 'nid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "nid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "uuid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "vid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "type"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(18) "revision_timestamp"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_log"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "status"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(5) "title"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "created"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "changed"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\Entity\BaseFieldOverride(35)
    *DEPTH TOO GREAT*
    protected name -> string(7) "promote"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "sticky"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "default_langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "revision_default"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(29) "revision_translation_affected"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "metatag"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'path' => Drupal\pathauto\PathautoFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "path"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'rh_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "rh_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(11) "rh_redirect"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(20) "rh_redirect_response"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(27) "rh_redirect_fallback_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "menu_link"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(26) "content_translation_source"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(28) "content_translation_outdated"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'body' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\field\Entity\FieldConfig(35)
    *DEPTH TOO GREAT*
    protected name -> string(4) "body"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
string(6) "$input"
'21: Kint::dump()' => array(2)
'file' => string(50) "modules/contrib/devel/kint/kint/Kint.class.php:234"
'args' => array(1)
array(1)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    *DEPTH TOO GREAT*
    'type' => array(1)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    *DEPTH TOO GREAT*
    'isDefaultRevision' => array(1)
    *DEPTH TOO GREAT*
    'status' => array(1)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    *DEPTH TOO GREAT*
    'title' => array(1)
    *DEPTH TOO GREAT*
    'created' => array(1)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    *DEPTH TOO GREAT*
    'body' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(28)
    'nid' => array(1)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    *DEPTH TOO GREAT*
    'type' => array(1)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    *DEPTH TOO GREAT*
    'status' => array(1)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    *DEPTH TOO GREAT*
    'title' => array(1)
    *DEPTH TOO GREAT*
    'created' => array(1)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    *DEPTH TOO GREAT*
    'metatag' => array(1)
    *DEPTH TOO GREAT*
    'path' => array(1)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    *DEPTH TOO GREAT*
    'menu_link' => array(1)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    *DEPTH TOO GREAT*
    'body' => array(1)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'path' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    'body' => Drupal\field\Entity\FieldConfig(35)
    *DEPTH TOO GREAT*
    protected languages -> array(4)
    'en' => Drupal\Core\Language\Language(5)
    *DEPTH TOO GREAT*
    'it' => Drupal\Core\Language\Language(5)
    *DEPTH TOO GREAT*
    'und' => Drupal\Core\Language\Language(5)
    *DEPTH TOO GREAT*
    'zxx' => Drupal\Core\Language\Language(5)
    *DEPTH TOO GREAT*
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "it"
    protected translations -> array(1)
    'x-default' => array(2)
    *DEPTH TOO GREAT*
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> string(1) "1"
    protected entityKeys -> array(4)
    'bundle' => string(7) "cookies"
    'id' => string(4) "1190"
    'revision' => string(4) "1218"
    'uuid' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    protected translatableEntityKeys -> array(8)
     x-default
    "label""Informativa estesa sui Cookies"
    "langcode""it"
    "status""1"
    "published""1"
    "uid""1"
    "owner""1"
    "default_langcode""1"
    "revision_translation_affected""1"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> string(4) "1218"
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "node"
    protected enforceIsNew -> NULL
    protected typedData -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    • contents
    • Available methods (34)
    • Iterator contents (28)
    • protected entity -> Drupal\node\Entity\Node(29) *RECURSION*
      protected definition -> Drupal\Core\Entity\TypedData\EntityDataDefinition(3)
      *DEPTH TOO GREAT*
      protected name -> NULL
      protected parent -> NULL
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      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:46
      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:64
      public __sleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public __wakeup()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
      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:119
      public getDataDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:87
      public getEntity() -> \Drupal\Core\Entity\EntityInterface
      Returns the wrapped entity object.
      
      @return \Drupal\Core\Entity\EntityInterface
      The wrapped entity object. If the entity is translatable and a specific
      translation is required, always request it by calling ::getTranslation()
      or ::getUntranslated() as the language of the returned object is not
      defined.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:176
      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:155
      public getParent()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:191
      public getPluginDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:80
      public getPluginId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:73
      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:173
      public getRoot()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:162
      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:147
      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:131
      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
    • *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
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:277
    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:1381
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static getCurrentUserId() -> array
    Default value callback for 'uid' base field definition.
    
    @see ::baseFieldDefinitions()
    
    @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
    be removed before 9.0.0.
    
    @return array
    An array of default values.
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:392
    public static getDefaultEntityOwner() -> mixed
    Default value callback for 'owner' base field.
    
    @return mixed
    A default value for the owner field.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    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 $nodes)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:178
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:162
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for publishing status.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the publishing status 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 EntityPublishedInterface
    or if it does not have a "published" entity key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\FieldDefinitionInterface[]
    Provides revision-related base field definitions for an entity type.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    
    @return \Drupal\Core\Field\FieldDefinitionInterface[]
    An array of base field definitions for the entity type, keyed by field
    name.
    
    @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions()
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:27
    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 = view, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:193
    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 delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    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:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:513
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:670
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:677
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:216
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    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 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 getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:615
    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 getRevisionAuthor()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:261
    public getRevisionCreationTime()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:58
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getRevisionLogMessage()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:103
    public getRevisionUser()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:73
    public getRevisionUserId()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:88
    public getTitle()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:201
    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 getType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:186
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    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:253
    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:1402
    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:1461
    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 isPromoted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:231
    public isPublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    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 isSticky()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:246
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    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:271
    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}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:139
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:102
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:124
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1262
    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:393
    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
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setCreatedTime($timestamp)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:223
    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:623
    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 setPromoted($promoted)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:238
    public setPublished($published = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setRevisionAuthorId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:269
    public setRevisionCreationTime($timestamp)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:65
    public setRevisionLogMessage($revision_log_message)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:110
    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 setRevisionUser(Drupal\user\UserInterface $account)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:80
    public setRevisionUserId($user_id)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:95
    public setSticky($sticky)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:253
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTitle($title)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:208
    public setUnpublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:71
    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:279
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:190
    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:340
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:292
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:182
    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 getRevisionMetadataKey(Drupal\Core\Entity\EntityTypeInterface $entity_type, $key) -> string
    Gets the name of a revision metadata field.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    A content entity type definition.
    @param string $key
    The revision metadata key to get, must be one of 'revision_created',
    'revision_user' or 'revision_log_message'.
    
    @return string
    The name of the field for the specified $key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:127
    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:598
    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 is removed from 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:1289
    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:1391
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    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:573
    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:264
    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:319
    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
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
    constant NOT_PUBLISHED :: integer0
    constant PUBLISHED :: integer1
    constant NOT_PROMOTED :: integer0
    constant PROMOTED :: integer1
    constant NOT_STICKY :: integer0
    constant STICKY :: integer1
  • 'nid' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    *DEPTH TOO GREAT*
    'path' => Drupal\pathauto\PathautoFieldItemList(10)
    *DEPTH TOO GREAT*
    'rh_action' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
    *DEPTH TOO GREAT*
    'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'body' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
'20: Drupal\kint\Plugin\Devel\Dumper\Kint->export()' => array(2)
'file' => string(62) "modules/contrib/devel/kint/src/Plugin/Devel/Dumper/Kint.php:32"
'args' => array(2)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    'x-default' => string(4) "1190"
    'vid' => array(1)
    'x-default' => string(4) "1218"
    'type' => array(1)
    'x-default' => string(7) "cookies"
    'uuid' => array(1)
    'x-default' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    'langcode' => array(1)
    'x-default' => string(2) "it"
    'revision_uid' => array(1)
    'x-default' => string(1) "1"
    'revision_timestamp' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'revision_log' => array(1)
    'x-default' => NULL
    'revision_default' => array(1)
    'x-default' => string(1) "1"
    'isDefaultRevision' => array(1)
    'x-default' => string(1) "1"
    'status' => array(1)
    'x-default' => string(1) "1"
    'uid' => array(1)
    'x-default' => string(1) "1"
    'title' => array(1)
    'x-default' => string(30) "Informativa estesa sui Cookies"
    'created' => array(1)
    'x-default' => string(10) "1589970820"
    • timestamp
    • 2020-05-20 12:33:40
    'changed' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'promote' => array(1)
    'x-default' => string(1) "0"
    'sticky' => array(1)
    'x-default' => string(1) "0"
    'default_langcode' => array(1)
    'x-default' => string(1) "1"
    'revision_translation_affected' => array(1)
    'x-default' => string(1) "1"
    'content_translation_source' => array(1)
    'x-default' => string(3) "und"
    'content_translation_outdated' => array(1)
    'x-default' => string(1) "0"
    'rh_action' => array(1)
    'x-default' => string(14) "bundle_default"
    'rh_redirect' => array(1)
    'x-default' => NULL
    'rh_redirect_response' => array(1)
    'x-default' => string(3) "301"
    'rh_redirect_fallback_action' => array(1)
    'x-default' => NULL
    'body' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(28)
    'nid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'type' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'status' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'title' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'created' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    'x-default' => Drupal\Core\Field\ChangedFieldItemList(9)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'metatag' => array(1)
    'x-default' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    *DEPTH TOO GREAT*
    'path' => array(1)
    'x-default' => Drupal\pathauto\PathautoFieldItemList(10)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'menu_link' => array(1)
    'x-default' => Drupal\token\MenuLinkFieldItemList(10)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'body' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "uuid"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(11) "string_long"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'title' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "changed"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
    • contents
    • Available methods (137)
    • protected baseFieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7)
      *DEPTH TOO GREAT*
      protected id -> string(20) "node.cookies.promote"
      protected field_name -> string(7) "promote"
      protected field_type -> string(7) "boolean"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(26) "Promosso alla prima pagina"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(1)
      *DEPTH TOO GREAT*
      protected default_value_callback -> string(0) ""
      protected fieldStorage -> NULL
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(20) "node.cookies.promote"
      protected status -> boolTRUE
      protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(19) "base_field_override"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(1)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
      Creates a base field override object.
      
      @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
      The base field definition to override.
      @param string $bundle
      The bundle to which the override applies.
      
      @return \Drupal\Core\Field\Entity\BaseFieldOverride
      A new base field override object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a base field bundle override config entity.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The base field bundle override config entity if one exists for the
      provided field name, otherwise NULL.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = base_field_override)
      Constructs a BaseFieldOverride object.
      
      In most cases, base field override entities are created via
      BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
      
      @param array $values
      An array of base field bundle override properties, keyed by property
      name. The field to override is specified by referring to an existing
      field with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the bundle field override is attached to. Other array
      elements will be used to set the corresponding properties on the class;
      see the class property documentation for details.
      @param string $entity_type
      (optional) The type of the entity to create. Defaults to
      'base_field_override'.
      
      @throws \Drupal\Core\Field\FieldException
      Exception thrown if $values does not contain a field_name, entity_type or
      bundle value.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      @throws \Drupal\Core\Field\FieldException
      If the bundle is being changed.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
      Gets the base field definition.
      
      @return \Drupal\Core\Field\BaseFieldDefinition
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
      protected getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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:264
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      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:319
      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
    'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(3) "map"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'path' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "path"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(12)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'body' => Drupal\field\Entity\FieldConfig(35)
    • contents
    • Available methods (136)
    • protected deleted -> boolFALSE
      protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig(33)
      *DEPTH TOO GREAT*
      protected id -> string(17) "node.cookies.body"
      protected field_name -> string(4) "body"
      protected field_type -> string(17) "text_with_summary"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(4) "Body"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(0)
      protected default_value_callback -> string(0) ""
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(17) "node.cookies.body"
      protected status -> boolTRUE
      protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(12) "field_config"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(2)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a field config entity based on the entity type and field name.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The field config entity if one exists for the provided field
      name, otherwise NULL.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = field_config)
      Constructs a FieldConfig object.
      
      In most cases, Field entities are created via
      FieldConfig::create($values), where $values is the same
      parameter as in this constructor.
      
      @param array $values
      An array of field properties, keyed by property name. The
      storage associated with the field can be specified either with:
      - field_storage: the FieldStorageConfigInterface object,
      or by referring to an existing field storage in the current configuration
      with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the field is attached to. Other array elements will be
      used to set the corresponding properties on the class; see the class
      property documentation for details.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Using the Serialize interface and serialize() / unserialize() methods
      breaks entity forms in PHP 5.4.
      @todo Investigate in https://www.drupal.org/node/1977206.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      Overrides \Drupal\Core\Entity\Entity::preSave().
      
      @throws \Drupal\Core\Field\FieldException
      If the field definition is invalid.
      @throws \Drupal\Core\Entity\EntityStorageException
      In case of failures at the configuration storage level.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      protected urlRouteParameters($rel)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
      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
    protected languages -> array(4)
    'en' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "English"
      protected id -> string(2) "en"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'it' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "Italian"
      protected id -> string(2) "it"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'und' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(13) "Not specified"
      protected id -> string(3) "und"
      protected direction -> string(3) "ltr"
      protected weight -> integer2
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'zxx' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(14) "Not applicable"
      protected id -> string(3) "zxx"
      protected direction -> string(3) "ltr"
      protected weight -> integer3
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "it"
    protected translations -> array(1)
    'x-default' => array(2)
    'status' => integer1
    'entity' => Drupal\node\Entity\Node(29) *RECURSION*
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> string(1) "1"
    protected entityKeys -> array(4)
    'bundle' => string(7) "cookies"
    'id' => string(4) "1190"
    'revision' => string(4) "1218"
    'uuid' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    protected translatableEntityKeys -> array(8)
     x-default
    "label""Informativa estesa sui Cookies"
    "langcode""it"
    "status""1"
    "published""1"
    "uid""1"
    "owner""1"
    "default_langcode""1"
    "revision_translation_affected""1"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> string(4) "1218"
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "node"
    protected enforceIsNew -> NULL
    protected typedData -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    • contents
    • Available methods (34)
    • Iterator contents (28)
    • protected entity -> Drupal\node\Entity\Node(29) *RECURSION*
      protected definition -> Drupal\Core\Entity\TypedData\EntityDataDefinition(3)
      • contents
      • Available methods (43)
      • protected propertyDefinitions -> array(28)
        *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 _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      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:46
      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:64
      public __sleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public __wakeup()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
      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:119
      public getDataDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:87
      public getEntity() -> \Drupal\Core\Entity\EntityInterface
      Returns the wrapped entity object.
      
      @return \Drupal\Core\Entity\EntityInterface
      The wrapped entity object. If the entity is translatable and a specific
      translation is required, always request it by calling ::getTranslation()
      or ::getUntranslated() as the language of the returned object is not
      defined.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:176
      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:155
      public getParent()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:191
      public getPluginDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:80
      public getPluginId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:73
      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:173
      public getRoot()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:162
      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:147
      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:131
      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
    • 'nid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uuid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'vid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_log' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'status' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'title' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'created' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
      *DEPTH TOO GREAT*
      'promote' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'sticky' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'default_langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_default' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
      *DEPTH TOO GREAT*
      'path' => Drupal\pathauto\PathautoFieldItemList(10)
      *DEPTH TOO GREAT*
      'rh_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
      *DEPTH TOO GREAT*
      'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'body' => Drupal\Core\Field\FieldItemList(9)
      *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
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:277
    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:1381
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static getCurrentUserId() -> array
    Default value callback for 'uid' base field definition.
    
    @see ::baseFieldDefinitions()
    
    @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
    be removed before 9.0.0.
    
    @return array
    An array of default values.
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:392
    public static getDefaultEntityOwner() -> mixed
    Default value callback for 'owner' base field.
    
    @return mixed
    A default value for the owner field.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    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 $nodes)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:178
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:162
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for publishing status.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the publishing status 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 EntityPublishedInterface
    or if it does not have a "published" entity key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\FieldDefinitionInterface[]
    Provides revision-related base field definitions for an entity type.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    
    @return \Drupal\Core\Field\FieldDefinitionInterface[]
    An array of base field definitions for the entity type, keyed by field
    name.
    
    @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions()
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:27
    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 = view, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:193
    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 delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    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:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:513
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:670
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:677
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:216
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    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 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 getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:615
    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 getRevisionAuthor()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:261
    public getRevisionCreationTime()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:58
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getRevisionLogMessage()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:103
    public getRevisionUser()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:73
    public getRevisionUserId()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:88
    public getTitle()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:201
    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 getType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:186
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    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:253
    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:1402
    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:1461
    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 isPromoted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:231
    public isPublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    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 isSticky()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:246
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    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:271
    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}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:139
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:102
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:124
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1262
    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:393
    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
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setCreatedTime($timestamp)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:223
    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:623
    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 setPromoted($promoted)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:238
    public setPublished($published = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setRevisionAuthorId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:269
    public setRevisionCreationTime($timestamp)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:65
    public setRevisionLogMessage($revision_log_message)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:110
    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 setRevisionUser(Drupal\user\UserInterface $account)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:80
    public setRevisionUserId($user_id)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:95
    public setSticky($sticky)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:253
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTitle($title)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:208
    public setUnpublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:71
    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:279
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:190
    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:340
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:292
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:182
    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 getRevisionMetadataKey(Drupal\Core\Entity\EntityTypeInterface $entity_type, $key) -> string
    Gets the name of a revision metadata field.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    A content entity type definition.
    @param string $key
    The revision metadata key to get, must be one of 'revision_created',
    'revision_user' or 'revision_log_message'.
    
    @return string
    The name of the field for the specified $key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:127
    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:598
    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 is removed from 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:1289
    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:1391
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    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:573
    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:264
    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:319
    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
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
    constant NOT_PUBLISHED :: integer0
    constant PUBLISHED :: integer1
    constant NOT_PROMOTED :: integer0
    constant PROMOTED :: integer1
    constant NOT_STICKY :: integer0
    constant STICKY :: integer1
  • 'nid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "nid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "uuid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "vid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "type"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(18) "revision_timestamp"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_log"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "status"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(5) "title"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "created"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "changed"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\Entity\BaseFieldOverride(35)
    *DEPTH TOO GREAT*
    protected name -> string(7) "promote"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "sticky"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "default_langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "revision_default"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(29) "revision_translation_affected"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "metatag"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'path' => Drupal\pathauto\PathautoFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "path"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'rh_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "rh_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(11) "rh_redirect"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(20) "rh_redirect_response"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(27) "rh_redirect_fallback_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "menu_link"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(26) "content_translation_source"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(28) "content_translation_outdated"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'body' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\field\Entity\FieldConfig(35)
    *DEPTH TOO GREAT*
    protected name -> string(4) "body"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
NULL
'19: Drupal\devel\DevelDumperBase->exportAsRenderable()' => array(2)
'file' => string(48) "modules/contrib/devel/src/DevelDumperBase.php:29"
'args' => array(2)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    'x-default' => string(4) "1190"
    'vid' => array(1)
    'x-default' => string(4) "1218"
    'type' => array(1)
    'x-default' => string(7) "cookies"
    'uuid' => array(1)
    'x-default' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    'langcode' => array(1)
    'x-default' => string(2) "it"
    'revision_uid' => array(1)
    'x-default' => string(1) "1"
    'revision_timestamp' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'revision_log' => array(1)
    'x-default' => NULL
    'revision_default' => array(1)
    'x-default' => string(1) "1"
    'isDefaultRevision' => array(1)
    'x-default' => string(1) "1"
    'status' => array(1)
    'x-default' => string(1) "1"
    'uid' => array(1)
    'x-default' => string(1) "1"
    'title' => array(1)
    'x-default' => string(30) "Informativa estesa sui Cookies"
    'created' => array(1)
    'x-default' => string(10) "1589970820"
    • timestamp
    • 2020-05-20 12:33:40
    'changed' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'promote' => array(1)
    'x-default' => string(1) "0"
    'sticky' => array(1)
    'x-default' => string(1) "0"
    'default_langcode' => array(1)
    'x-default' => string(1) "1"
    'revision_translation_affected' => array(1)
    'x-default' => string(1) "1"
    'content_translation_source' => array(1)
    'x-default' => string(3) "und"
    'content_translation_outdated' => array(1)
    'x-default' => string(1) "0"
    'rh_action' => array(1)
    'x-default' => string(14) "bundle_default"
    'rh_redirect' => array(1)
    'x-default' => NULL
    'rh_redirect_response' => array(1)
    'x-default' => string(3) "301"
    'rh_redirect_fallback_action' => array(1)
    'x-default' => NULL
    'body' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(28)
    'nid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'type' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'status' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'title' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'created' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    'x-default' => Drupal\Core\Field\ChangedFieldItemList(9)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'metatag' => array(1)
    'x-default' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    *DEPTH TOO GREAT*
    'path' => array(1)
    'x-default' => Drupal\pathauto\PathautoFieldItemList(10)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'menu_link' => array(1)
    'x-default' => Drupal\token\MenuLinkFieldItemList(10)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'body' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "uuid"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(11) "string_long"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'title' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'created' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'changed' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "changed"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'promote' => Drupal\Core\Field\Entity\BaseFieldOverride(35)
    • contents
    • Available methods (137)
    • protected baseFieldDefinition -> Drupal\Core\Field\BaseFieldDefinition(7)
      *DEPTH TOO GREAT*
      protected id -> string(20) "node.cookies.promote"
      protected field_name -> string(7) "promote"
      protected field_type -> string(7) "boolean"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(26) "Promosso alla prima pagina"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(1)
      *DEPTH TOO GREAT*
      protected default_value_callback -> string(0) ""
      protected fieldStorage -> NULL
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(20) "node.cookies.promote"
      protected status -> boolTRUE
      protected uuid -> string(36) "59cdb032-214c-491c-9165-ffbeb4fa48a2"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(19) "base_field_override"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(1)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle) -> \Drupal\Core\Field\Entity\BaseFieldOverride
      Creates a base field override object.
      
      @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition
      The base field definition to override.
      @param string $bundle
      The bundle to which the override applies.
      
      @return \Drupal\Core\Field\Entity\BaseFieldOverride
      A new base field override object.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:63
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a base field bundle override config entity.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The base field bundle override config entity if one exists for the
      provided field name, otherwise NULL.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:240
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:211
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:559
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = base_field_override)
      Constructs a BaseFieldOverride object.
      
      In most cases, base field override entities are created via
      BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle')
      
      @param array $values
      An array of base field bundle override properties, keyed by property
      name. The field to override is specified by referring to an existing
      field with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the bundle field override is attached to. Other array
      elements will be used to set the corresponding properties on the class;
      see the class property documentation for details.
      @param string $entity_type
      (optional) The type of the entity to create. Defaults to
      'base_field_override'.
      
      @throws \Drupal\Core\Field\FieldException
      Exception thrown if $values does not contain a field_name, entity_type or
      bundle value.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:247
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:232
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:146
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:125
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:111
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:153
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:139
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:118
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:132
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:272
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      @throws \Drupal\Core\Field\FieldException
      If the bundle is being changed.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:176
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getBaseFieldDefinition() -> \Drupal\Core\Field\BaseFieldDefinition
      Gets the base field definition.
      
      @return \Drupal\Core\Field\BaseFieldDefinition
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:162
      protected getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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:264
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      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:319
      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
    'sticky' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'default_langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_default' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_translation_affected' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'metatag' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(3) "map"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'path' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "path"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(6) "string"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_response' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'rh_redirect_fallback_action' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'menu_link' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(12)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_source' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'content_translation_outdated' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(10)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'body' => Drupal\field\Entity\FieldConfig(35)
    • contents
    • Available methods (136)
    • protected deleted -> boolFALSE
      protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig(33)
      *DEPTH TOO GREAT*
      protected id -> string(17) "node.cookies.body"
      protected field_name -> string(4) "body"
      protected field_type -> string(17) "text_with_summary"
      protected entity_type -> string(4) "node"
      protected bundle -> string(7) "cookies"
      protected label -> string(4) "Body"
      protected description -> string(0) ""
      protected settings -> array(2)
      *DEPTH TOO GREAT*
      protected required -> boolFALSE
      protected translatable -> boolTRUE
      protected default_value -> array(0)
      protected default_value_callback -> string(0) ""
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected constraints -> array(0)
      protected propertyConstraints -> array(0)
      protected originalId -> string(17) "node.cookies.body"
      protected status -> boolTRUE
      protected uuid -> string(36) "cf503ec6-aca5-4aa5-a18e-8fd03add3efc"
      private isUninstalling -> boolFALSE
      protected langcode -> string(2) "it"
      protected third_party_settings -> array(0)
      protected _core -> array(0)
      protected trustedData -> boolFALSE
      protected entityTypeId -> string(12) "field_config"
      protected enforceIsNew -> NULL
      protected typedData -> NULL
      protected cacheContexts -> array(1)
      *DEPTH TOO GREAT*
      protected cacheTags -> array(0)
      protected cacheMaxAge -> integer-1
      protected _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      protected dependencies -> array(2)
      *DEPTH TOO GREAT*
      protected isSyncing -> boolFALSE
    • public static create(array $values = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
      public static createFromDataType($type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:466
      public static createFromItemType($item_type)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:457
      public static load($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
      public static loadByName($entity_type_id, $bundle, $field_name) -> static
      Loads a field config entity based on the entity type and field name.
      
      @param string $entity_type_id
      ID of the entity type.
      @param string $bundle
      Bundle name.
      @param string $field_name
      Name of the field.
      
      @return static
      The field config entity if one exists for the provided field
      name, otherwise NULL.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:373
      public static loadMultiple(array $ids = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
      public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:221
      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:479
      public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
      public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:195
      public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
      Helper callback for uasort() to sort configuration entities by weight and label.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
      public __construct(array $values, $entity_type = field_config)
      Constructs a FieldConfig object.
      
      In most cases, Field entities are created via
      FieldConfig::create($values), where $values is the same
      parameter as in this constructor.
      
      @param array $values
      An array of field properties, keyed by property name. The
      storage associated with the field can be specified either with:
      - field_storage: the FieldStorageConfigInterface object,
      or by referring to an existing field storage in the current configuration
      with:
      - field_name: The field name.
      - entity_type: The entity type.
      Additionally, a 'bundle' property is required to indicate the entity
      bundle to which the field is attached to. Other array elements will be
      used to set the corresponding properties on the class; see the class
      property documentation for details.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:94
      public __sleep()
      Implements the magic __sleep() method.
      
      Using the Serialize interface and serialize() / unserialize() methods
      breaks entity forms in PHP 5.4.
      @todo Investigate in https://www.drupal.org/node/1977206.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:446
      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\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:362
      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 addConstraint($constraint_name, $options = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:553
      public addPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:574
      public bundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
      public calculateDependencies()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:185
      public createDuplicate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:218
      public delete()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
      public disable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:182
      public enable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:175
      public enforceIsNew($value = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:143
      public get($property_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
      public getCacheContexts()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
      public getCacheMaxAge()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
      public getCacheTags()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
      public getCacheTagsToInvalidate()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
      public getClass()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:489
      public getConfig($bundle)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:538
      public getConfigDependencyKey()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:663
      public getConfigDependencyName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:457
      public getConfigTarget()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:464
      public getConstraint($constraint_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:506
      public getConstraints()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:499
      public getDataType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:475
      public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:395
      public getDefaultValueCallback()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:427
      public getDefaultValueLiteral()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:412
      public getDependencies()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:443
      public getDescription()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:314
      public getDisplayOptions($display_context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:333
      public getEntityType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
      public getEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:152
      public getFieldStorageDefinition()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:292
      public getItemDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:514
      public getLabel()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:299
      public getName()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:204
      public getOriginalId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:120
      public getSetting($setting_name)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:360
      public getSettings()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:345
      public getTargetBundle()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:225
      public getTargetEntityTypeId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:218
      public getThirdPartyProviders()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:552
      public getThirdPartySetting($module, $key, $default = NULL)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:520
      public getThirdPartySettings($module)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:532
      public getType()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:211
      public getTypedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
      public getUniqueIdentifier()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:355
      public hasLinkTemplate($rel)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:253
      public hasTrustedData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
      public id()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:197
      public isComputed()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:348
      public isDeleted()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:285
      public isDisplayConfigurable($context)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:326
      public isInstallable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:593
      public isInternal()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:589
      public isList()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:482
      public isNew()
      Overrides Entity::isNew().
      
      EntityInterface::enforceIsNew() is only supported for newly created
      configuration entities but has no effect after saving, since each
      configuration entity is unique.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:144
      public isReadOnly()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:341
      public isRequired()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:380
      public isSyncing()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
      public isTranslatable()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:329
      public isUninstalling()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:211
      public label()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:166
      public language()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:376
      public link($text = NULL, $rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:397
      public mergeCacheMaxAge($max_age)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
      public onDependencyRemoval(array $dependencies)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:259
      public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:127
      public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:285
      public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
      Overrides \Drupal\Core\Entity\Entity::preSave().
      
      @throws \Drupal\Core\Field\FieldException
      If the field definition is invalid.
      @throws \Drupal\Core\Entity\EntityStorageException
      In case of failures at the configuration storage level.
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:149
      public referencedEntities()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:485
      public save()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:615
      public set($property_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
      public setConstraints(array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:545
      public setDefaultValue($value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:419
      public setDefaultValueCallback($callback)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:434
      public setDescription($description)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:321
      public setLabel($label)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:306
      public setOriginalId($id)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
      public setPropertyConstraints($name, array $constraints)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:561
      public setRequired($required)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:387
      public setSetting($setting_name, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:372
      public setSettings(array $settings)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:352
      public setStatus($status)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:189
      public setSyncing($syncing)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
      public setThirdPartySetting($module, $key, $value)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:512
      public setTranslatable($translatable)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldConfigBase.php:337
      public setUninstalling($uninstalling)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:204
      public status()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:197
      public toArray()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:243
      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:279
      public toUrl($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
      public traitSleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public trustData()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:600
      public unsetThirdPartySetting($module, $key)
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
      public uriRelationships()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:340
      public url($rel = edit-form, $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:389
      public urlInfo($rel = edit-form, array $options = array())
      {@inheritdoc}
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:380
      public uuid()
      {@inheritdoc}
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:129
      protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
      Gets the configuration manager.
      
      @return \Drupal\Core\Config\ConfigManager
      The configuration manager.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:586
      protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
      {@inheritdoc}
      
      Override to never invalidate the individual entities' cache tags; the
      config system already invalidates them.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:501
      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.
      
      Inherited from Drupal\Core\Field\FieldConfigBase
      Defined in <ROOT>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
      protected addDependencies(array $dependencies)
      Adds multiple dependencies.
      
      @param array $dependencies
      An array of dependencies keyed by the type of dependency. One example:
      @code
      array(
      'module' => array(
      'node',
      'field',
      'image',
      ),
      );
      @endcode
      
      @see \Drupal\Core\Entity\DependencyTrait::addDependency
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
      protected addDependency($type, $name)
      Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
      
      Note that this function should only be called from implementations of
      \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(),
      as dependencies are recalculated during every entity save.
      
      @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency()
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:429
      protected addDependencyTrait($type, $name) -> $this
      Adds a dependency.
      
      @param string $type
      Type of dependency being added: 'module', 'theme', 'config', 'content'.
      @param string $name
      If $type is 'module' or 'theme', the name of the module or theme. If
      $type is 'config' or 'content', the result of
      EntityInterface::getConfigDependencyName().
      
      @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName()
      
      @return $this
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
      protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
      Calculates and adds dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:92
      protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
      Gets the entity manager.
      
      @return \Drupal\Core\Entity\EntityManagerInterface
      
      @deprecated in drupal:8.0.0 and is removed from 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 getListCacheTagsToInvalidate() -> string[]
      The list cache tags to invalidate for this entity.
      
      @return string[]
      Set of list cache tags.
      
      Inherited from Drupal\Core\Entity\EntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
      protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) -> array
      Calculates and returns dependencies of a specific plugin instance.
      
      Dependencies are added for the module that provides the plugin, as well
      as any dependencies declared by the instance's calculateDependencies()
      method, if it implements
      \Drupal\Component\Plugin\DependentPluginInterface.
      
      @param \Drupal\Component\Plugin\PluginInspectionInterface $instance
      The plugin instance.
      
      @return array
      An array of dependencies keyed by the type of dependency.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
      protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
      Gets the typed config manager.
      
      @return \Drupal\Core\Config\TypedConfigManagerInterface
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:278
      protected invalidateTagsOnSave($update)
      {@inheritdoc}
      
      Override to never invalidate the entity's cache tag; the config system
      already invalidates it.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:491
      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()
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:257
      protected moduleHandler() -> \Drupal\Core\Extension\ModuleHandlerInterface
      Wraps the module handler.
      
      @return \Drupal\Core\Extension\ModuleHandlerInterface
      The module handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:102
      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 themeHandler() -> \Drupal\Core\Extension\ThemeHandlerInterface
      Wraps the theme handler.
      
      @return \Drupal\Core\Extension\ThemeHandlerInterface
      The theme handler.
      
      Inherited from Drupal\Core\Config\Entity\ConfigEntityBase
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:112
      protected urlRouteParameters($rel)
      {@inheritdoc}
      
      Defined in <ROOT>/core/modules/field/src/Entity/FieldConfig.php:274
      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
    protected languages -> array(4)
    'en' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "English"
      protected id -> string(2) "en"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'it' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(7) "Italian"
      protected id -> string(2) "it"
      protected direction -> string(3) "ltr"
      protected weight -> integer0
      protected locked -> boolFALSE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'und' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(13) "Not specified"
      protected id -> string(3) "und"
      protected direction -> string(3) "ltr"
      protected weight -> integer2
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    'zxx' => Drupal\Core\Language\Language(5)
    • contents
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string(14) "Not applicable"
      protected id -> string(3) "zxx"
      protected direction -> string(3) "ltr"
      protected weight -> integer3
      protected locked -> boolTRUE
    • public static sort(&$languages)
      Sort language objects.
      
      @param \Drupal\Core\Language\LanguageInterface[] $languages
      The array of language objects keyed by langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      public __construct(array $values = array())
      Constructs a new class instance.
      
      @param array $values
      An array of property values, keyed by property name, used to construct
      the language.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getDirection()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getId()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getName()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getWeight()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked()
      {@inheritdoc}
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      protected static getDefaultLangcode() -> string
      Gets the default langcode.
      
      @return string
      The current default langcode.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public $defaultValues :: array(5)
      *DEPTH TOO GREAT*
      constant LANGCODE_SYSTEM :: string(6) "system"
      constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
      constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
      constant LANGCODE_DEFAULT :: string(9) "x-default"
      constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
      constant VALID_LANGCODE_REGEX :: string(33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      constant STATE_CONFIGURABLE :: integer1
      constant STATE_LOCKED :: integer2
      constant STATE_ALL :: integer3
      constant STATE_SITE_DEFAULT :: integer4
      constant TYPE_CONTENT :: string(16) "language_content"
      constant TYPE_INTERFACE :: string(18) "language_interface"
      constant TYPE_URL :: string(12) "language_url"
      constant DIRECTION_LTR :: string(3) "ltr"
      constant DIRECTION_RTL :: string(3) "rtl"
    protected langcodeKey -> string(8) "langcode"
    protected defaultLangcodeKey -> string(16) "default_langcode"
    protected activeLangcode -> string(9) "x-default"
    protected defaultLangcode -> string(2) "it"
    protected translations -> array(1)
    'x-default' => array(2)
    'status' => integer1
    'entity' => Drupal\node\Entity\Node(29) *RECURSION*
    protected translationInitialize -> boolFALSE
    protected newRevision -> boolFALSE
    protected isDefaultRevision -> string(1) "1"
    protected entityKeys -> array(4)
    'bundle' => string(7) "cookies"
    'id' => string(4) "1190"
    'revision' => string(4) "1218"
    'uuid' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    protected translatableEntityKeys -> array(8)
     x-default
    "label""Informativa estesa sui Cookies"
    "langcode""it"
    "status""1"
    "published""1"
    "uid""1"
    "owner""1"
    "default_langcode""1"
    "revision_translation_affected""1"
    protected validated -> boolFALSE
    protected validationRequired -> boolFALSE
    protected loadedRevisionId -> string(4) "1218"
    protected revisionTranslationAffectedKey -> string(29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array(0)
    protected entityTypeId -> string(4) "node"
    protected enforceIsNew -> NULL
    protected typedData -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    • contents
    • Available methods (34)
    • Iterator contents (28)
    • protected entity -> Drupal\node\Entity\Node(29) *RECURSION*
      protected definition -> Drupal\Core\Entity\TypedData\EntityDataDefinition(3)
      • contents
      • Available methods (43)
      • protected propertyDefinitions -> array(28)
        *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 _serviceIds -> array(0)
      protected _entityStorages -> array(0)
      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:46
      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:64
      public __sleep()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
      public __wakeup()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
      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:119
      public getDataDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:87
      public getEntity() -> \Drupal\Core\Entity\EntityInterface
      Returns the wrapped entity object.
      
      @return \Drupal\Core\Entity\EntityInterface
      The wrapped entity object. If the entity is translatable and a specific
      translation is required, always request it by calling ::getTranslation()
      or ::getUntranslated() as the language of the returned object is not
      defined.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php:176
      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:155
      public getParent()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:191
      public getPluginDefinition()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:80
      public getPluginId()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:73
      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:173
      public getRoot()
      {@inheritdoc}
      
      Inherited from Drupal\Core\TypedData\TypedData
      Defined in <ROOT>/core/lib/Drupal/Core/TypedData/TypedData.php:162
      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:147
      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:131
      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
    • 'nid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uuid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'vid' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_log' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'status' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
      *DEPTH TOO GREAT*
      'title' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'created' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
      *DEPTH TOO GREAT*
      'promote' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'sticky' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'default_langcode' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_default' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
      *DEPTH TOO GREAT*
      'path' => Drupal\pathauto\PathautoFieldItemList(10)
      *DEPTH TOO GREAT*
      'rh_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
      *DEPTH TOO GREAT*
      'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
      *DEPTH TOO GREAT*
      'body' => Drupal\Core\Field\FieldItemList(9)
      *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
  • public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:277
    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:1381
    public static create(array $values = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:560
    public static getCurrentUserId() -> array
    Default value callback for 'uid' base field definition.
    
    @see ::baseFieldDefinitions()
    
    @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
    be removed before 9.0.0.
    
    @return array
    An array of default values.
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:392
    public static getDefaultEntityOwner() -> mixed
    Default value callback for 'owner' base field.
    
    @return mixed
    A default value for the owner field.
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static load($id)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:540
    public static loadMultiple(array $ids = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:550
    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 $nodes)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:178
    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:479
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:454
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:162
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\BaseFieldDefinition[]
    Returns an array of base field definitions for publishing status.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type to add the publishing status 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 EntityPublishedInterface
    or if it does not have a "published" entity key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) -> \Drupal\Core\Field\FieldDefinitionInterface[]
    Provides revision-related base field definitions for an entity type.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    The entity type definition.
    
    @return \Drupal\Core\Field\FieldDefinitionInterface[]
    An array of base field definitions for the entity type, keyed by field
    name.
    
    @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions()
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:27
    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 = view, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:193
    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 delete()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:401
    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:492
    public getCacheMaxAge()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:533
    public getCacheTags()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:523
    public getCacheTagsToInvalidate()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:513
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    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:663
    public getConfigDependencyName()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:670
    public getConfigTarget()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:677
    public getCreatedTime()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:216
    public getEntityType()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:427
    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 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 getOriginalId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:615
    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 getRevisionAuthor()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:261
    public getRevisionCreationTime()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:58
    public getRevisionId()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:422
    public getRevisionLogMessage()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:103
    public getRevisionUser()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:73
    public getRevisionUserId()
    Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:88
    public getTitle()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:201
    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 getType()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:186
    public getTypedData()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:644
    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:253
    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:1402
    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:1461
    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 isPromoted()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:231
    public isPublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    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 isSticky()
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:246
    public isSyncing()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:32
    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:271
    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}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:139
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:102
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:124
    public referencedEntities()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1262
    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:393
    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
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:44
    public setCreatedTime($timestamp)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:223
    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:623
    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 setPromoted($promoted)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:238
    public setPublished($published = NULL)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setRevisionAuthorId($uid)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:269
    public setRevisionCreationTime($timestamp)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:65
    public setRevisionLogMessage($revision_log_message)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:110
    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 setRevisionUser(Drupal\user\UserInterface $account)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:80
    public setRevisionUserId($user_id)
    Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:95
    public setSticky($sticky)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:253
    public setSyncing($syncing)
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:23
    public setTitle($title)
    {@inheritdoc}
    
    Defined in <ROOT>/core/modules/node/src/Entity/Node.php:208
    public setUnpublished()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:71
    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:279
    public toUrl($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:190
    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:340
    public url($rel = canonical, $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:292
    public urlInfo($rel = canonical, array $options = array())
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:182
    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 getRevisionMetadataKey(Drupal\Core\Entity\EntityTypeInterface $entity_type, $key) -> string
    Gets the name of a revision metadata field.
    
    @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    A content entity type definition.
    @param string $key
    The revision metadata key to get, must be one of 'revision_created',
    'revision_user' or 'revision_log_message'.
    
    @return string
    The name of the field for the specified $key.
    
    Inherited from Drupal\Core\Entity\EditorialContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:127
    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:598
    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 is removed from 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:1289
    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:1391
    protected getLanguages()
    {@inheritdoc}
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:268
    protected getListCacheTagsToInvalidate() -> string[]
    The list cache tags to invalidate for this entity.
    
    @return string[]
    Set of list cache tags.
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:502
    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:573
    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:264
    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:319
    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
  • protected $fieldsToSkipFromTranslationChangesCheck :: array(0)
    constant TRANSLATION_REMOVED :: integer0
    constant TRANSLATION_EXISTING :: integer1
    constant TRANSLATION_CREATED :: integer2
    constant NOT_PUBLISHED :: integer0
    constant PUBLISHED :: integer1
    constant NOT_PROMOTED :: integer0
    constant PROMOTED :: integer1
    constant NOT_STICKY :: integer0
    constant STICKY :: integer1
  • 'nid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "nid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uuid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "uuid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'vid' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "vid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(8) "langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'type' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "type"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_timestamp' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(18) "revision_timestamp"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_log' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(12) "revision_log"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'status' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "status"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'uid' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(3) "uid"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'title' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(5) "title"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'created' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "created"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'changed' => Drupal\Core\Field\ChangedFieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "changed"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'promote' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\Entity\BaseFieldOverride(35)
    *DEPTH TOO GREAT*
    protected name -> string(7) "promote"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'sticky' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(6) "sticky"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'default_langcode' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "default_langcode"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_default' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(16) "revision_default"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(29) "revision_translation_affected"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'metatag' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(7) "metatag"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'path' => Drupal\pathauto\PathautoFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(4) "path"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'rh_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "rh_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(11) "rh_redirect"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(20) "rh_redirect_response"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(27) "rh_redirect_fallback_action"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'menu_link' => Drupal\token\MenuLinkFieldItemList(10)
    protected list -> array(0)
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(9) "menu_link"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    protected valueComputed -> boolFALSE
    'content_translation_source' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(26) "content_translation_source"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\Core\Field\BaseFieldDefinition(7)
    *DEPTH TOO GREAT*
    protected name -> string(28) "content_translation_outdated"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
    'body' => Drupal\Core\Field\FieldItemList(9)
    protected list -> array(1)
    *DEPTH TOO GREAT*
    protected langcode -> string(2) "it"
    protected definition -> Drupal\field\Entity\FieldConfig(35)
    *DEPTH TOO GREAT*
    protected name -> string(4) "body"
    protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter(8)
    *DEPTH TOO GREAT*
    protected _serviceIds -> array(0)
    protected _entityStorages -> array(0)
    protected stringTranslation -> NULL
    protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager(23)
    *DEPTH TOO GREAT*
NULL
'18: Drupal\devel\DevelDumperManager->exportAsRenderable()' => array(2)
'file' => string(52) "modules/contrib/devel/src/DevelDumperManager.php:133"
'args' => array(1)
Drupal\node\Entity\Node(29)
  • contents
  • Available methods (153)
  • Static class properties (10)
  • Iterator contents (28)
  • public in_preview -> NULL
    protected values -> array(26)
    'nid' => array(1)
    'x-default' => string(4) "1190"
    'vid' => array(1)
    'x-default' => string(4) "1218"
    'type' => array(1)
    'x-default' => string(7) "cookies"
    'uuid' => array(1)
    'x-default' => string(36) "34c64c53-299a-463f-a092-c62156a83b27"
    'langcode' => array(1)
    'x-default' => string(2) "it"
    'revision_uid' => array(1)
    'x-default' => string(1) "1"
    'revision_timestamp' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'revision_log' => array(1)
    'x-default' => NULL
    'revision_default' => array(1)
    'x-default' => string(1) "1"
    'isDefaultRevision' => array(1)
    'x-default' => string(1) "1"
    'status' => array(1)
    'x-default' => string(1) "1"
    'uid' => array(1)
    'x-default' => string(1) "1"
    'title' => array(1)
    'x-default' => string(30) "Informativa estesa sui Cookies"
    'created' => array(1)
    'x-default' => string(10) "1589970820"
    • timestamp
    • 2020-05-20 12:33:40
    'changed' => array(1)
    'x-default' => string(10) "1589971206"
    • timestamp
    • 2020-05-20 12:40:06
    'promote' => array(1)
    'x-default' => string(1) "0"
    'sticky' => array(1)
    'x-default' => string(1) "0"
    'default_langcode' => array(1)
    'x-default' => string(1) "1"
    'revision_translation_affected' => array(1)
    'x-default' => string(1) "1"
    'content_translation_source' => array(1)
    'x-default' => string(3) "und"
    'content_translation_outdated' => array(1)
    'x-default' => string(1) "0"
    'rh_action' => array(1)
    'x-default' => string(14) "bundle_default"
    'rh_redirect' => array(1)
    'x-default' => NULL
    'rh_redirect_response' => array(1)
    'x-default' => string(3) "301"
    'rh_redirect_fallback_action' => array(1)
    'x-default' => NULL
    'body' => array(1)
    'x-default' => array(1)
    *DEPTH TOO GREAT*
    protected fields -> array(28)
    'nid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uuid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'vid' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'type' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_timestamp' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_log' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'status' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'uid' => array(1)
    'x-default' => Drupal\Core\Field\EntityReferenceFieldItemList(9)
    *DEPTH TOO GREAT*
    'title' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'created' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'changed' => array(1)
    'x-default' => Drupal\Core\Field\ChangedFieldItemList(9)
    *DEPTH TOO GREAT*
    'promote' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'sticky' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'default_langcode' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_default' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'revision_translation_affected' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'metatag' => array(1)
    'x-default' => Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList(10)
    *DEPTH TOO GREAT*
    'path' => array(1)
    'x-default' => Drupal\pathauto\PathautoFieldItemList(10)
    *DEPTH TOO GREAT*
    'rh_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_response' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'rh_redirect_fallback_action' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'menu_link' => array(1)
    'x-default' => Drupal\token\MenuLinkFieldItemList(10)
    *DEPTH TOO GREAT*
    'content_translation_source' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'content_translation_outdated' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    'body' => array(1)
    'x-default' => Drupal\Core\Field\FieldItemList(9)
    *DEPTH TOO GREAT*
    protected fieldDefinitions -> array(28)
    'nid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'uuid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(4) "uuid"
      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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'vid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • 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(6)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'langcode' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(8) "language"
      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(8)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'type' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_timestamp' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "created"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_uid' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(16) "entity_reference"
      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
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'revision_log' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(11) "string_long"
      protected propertyDefinitions -> NULL
      protected schema -> NULL
      protected indexes -> array(0)
      protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition(3)
      *DEPTH TOO GREAT*
      protected definition -> array(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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 is removed from 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 is removed from drupal:9.0.0. Use
      \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.
      
      Defined in <ROOT>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:643
    • constant CARDINALITY_UNLIMITED :: integer-1
    'status' => Drupal\Core\Field\BaseFieldDefinition(7)
    • contents
    • Available methods (97)
    • Static class properties (1)
    • protected type -> string(7) "boolean"
      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(9)
      *DEPTH TOO GREAT*
      protected typedDataManager -> NULL
    • 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