public TypedData::applyDefaultValue($notify = TRUE)
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.
Overrides TypedDataInterface::applyDefaultValue
File
- core/lib/Drupal/Core/TypedData/TypedData.php, line 141
Class
- TypedData
- The abstract base class for typed data.
Namespace
Drupal\Core\TypedData
Code
1 2 3 4 5 | public function applyDefaultValue( $notify = TRUE) { // Default to no default value. $this ->setValue(NULL, $notify ); return $this ; } |
Please login to continue.