public TypedData::applyDefaultValue($notify = TRUE)
Applies the default value.
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.
\Drupal\Core\TypedData\TypedDataInterface Returns itself to allow for chaining.
Overrides TypedDataInterface::applyDefaultValue
public function applyDefaultValue($notify = TRUE) { // Default to no default value. $this->setValue(NULL, $notify); return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!TypedData.php/function/TypedData::applyDefaultValue/8.1.x