function StringFormatter::defaultSettings

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter::defaultSettings()
  2. 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter::defaultSettings()
  3. 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter::defaultSettings()

Overrides PluginSettingsBase::defaultSettings

1 call to StringFormatter::defaultSettings()
LanguageFormatter::defaultSettings in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
1 method overrides StringFormatter::defaultSettings()
LanguageFormatter::defaultSettings in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php, line 82

Class

StringFormatter
Plugin implementation of the 'string' formatter.

Namespace

Drupal\Core\Field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
    $options = parent::defaultSettings();
    $options['link_to_entity'] = FALSE;
    return $options;
}

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