function FieldItemList::processDefaultValue
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()
- 10 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()
- 11.x core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::processDefaultValue()
Overrides FieldItemListInterface::processDefaultValue
3 calls to FieldItemList::processDefaultValue()
- DateRangeFieldItemList::processDefaultValue in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldType/ DateRangeFieldItemList.php - Processes the default value before being applied.
- 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.
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 331
Class
- FieldItemList
- Represents an entity field; that is, a list of field item objects.
Namespace
Drupal\Core\FieldCode
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.