function TextItemBase::applyDefaultValue

Same name and namespace in other branches
  1. 9 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 99

Class

TextItemBase
Base class for 'text' configurable field types.

Namespace

Drupal\text\Plugin\Field\FieldType

Code

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.