function TextWithSummaryItem::defaultFieldSettings

Same name in other branches
  1. 9 core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php \Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::defaultFieldSettings()
  2. 8.9.x core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php \Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::defaultFieldSettings()
  3. 11.x core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php \Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::defaultFieldSettings()

Overrides TextItemBase::defaultFieldSettings

File

core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php, line 33

Class

TextWithSummaryItem
Plugin implementation of the 'text_with_summary' field type.

Namespace

Drupal\text\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
    return [
        'display_summary' => 0,
        'required_summary' => FALSE,
    ] + parent::defaultFieldSettings();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.