public function TypedDataInterface::applyDefaultValue in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::applyDefaultValue()
- 9 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);