function TextItemBase::applyDefaultValue
Same name in other branches
- 9 core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php \Drupal\text\Plugin\Field\FieldType\TextItemBase::applyDefaultValue()
- 10 core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php \Drupal\text\Plugin\Field\FieldType\TextItemBase::applyDefaultValue()
- 11.x core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php \Drupal\text\Plugin\Field\FieldType\TextItemBase::applyDefaultValue()
Overrides Map::applyDefaultValue
File
-
core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php, line 41
Class
- TextItemBase
- Base class for 'text' configurable field types.
Namespace
Drupal\text\Plugin\Field\FieldTypeCode
public function applyDefaultValue($notify = TRUE) {
// @todo: Add in the filter default format here.
$this->setValue([
'format' => NULL,
], $notify);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.