public function TypedDataInterface::applyDefaultValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
\Drupal\Core\TypedData\TypedDataInterface Returns itself to allow for chaining.
2 methods override TypedDataInterface::applyDefaultValue()
- TestComplexData::applyDefaultValue in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php - Applies the default value.
- TypedData::applyDefaultValue in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Applies the default value.
File
- core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 110 - Contains \Drupal\Core\TypedData\TypedDataInterface.
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function applyDefaultValue($notify = TRUE);