function Map::applyDefaultValue
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::applyDefaultValue()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::applyDefaultValue()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::applyDefaultValue()
Overrides TypedData::applyDefaultValue
1 call to Map::applyDefaultValue()
- CreatedItem::applyDefaultValue in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ CreatedItem.php - Applies the default value.
4 methods override Map::applyDefaultValue()
- CreatedItem::applyDefaultValue in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ CreatedItem.php - Applies the default value.
- LanguageItem::applyDefaultValue in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ LanguageItem.php - Applies the default value.
- TextItemBase::applyDefaultValue in core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php - Applies the default value.
- UuidItem::applyDefaultValue in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UuidItem.php - Applies the default value.
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Map.php, line 241
Class
- Map
- The "map" data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function applyDefaultValue($notify = TRUE) {
// Apply the default value of all properties.
foreach ($this->getProperties() as $property) {
$property->applyDefaultValue(FALSE);
}
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.