function Map::applyDefaultValue

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::applyDefaultValue()
  2. 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::applyDefaultValue()
  3. 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\DataType

Code

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.