function TypedDataInterface::applyDefaultValue
Same name in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::applyDefaultValue()
- 10 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::applyDefaultValue()
- 11.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::applyDefaultValue()
Applies the default value.
Parameters
bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again.
Return value
$this Returns itself to allow for chaining.
1 method overrides TypedDataInterface::applyDefaultValue()
- TypedData::applyDefaultValue in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Applies the default value.
File
-
core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 105
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function applyDefaultValue($notify = TRUE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.