function FieldItemList::processDefaultValue

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()
  3. 10 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()

Overrides FieldItemListInterface::processDefaultValue

1 call to FieldItemList::processDefaultValue()
DateRangeFieldItemList::processDefaultValue in core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeFieldItemList.php
Processes the default value before being applied.
2 methods override FieldItemList::processDefaultValue()
DateTimeFieldItemList::processDefaultValue in core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
Processes the default value before being applied.
EntityReferenceFieldItemList::processDefaultValue in core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php
Processes the default value before being applied.

File

core/lib/Drupal/Core/Field/FieldItemList.php, line 332

Class

FieldItemList
Represents an entity field; that is, a list of field item objects.

Namespace

Drupal\Core\Field

Code

public static function processDefaultValue($default_value, FieldableEntityInterface $entity, FieldDefinitionInterface $definition) {
    return $default_value;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.