You are here

public static function AdvancedTextFormatter::defaultSettings in Advanced Text Formatter 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Field/FieldFormatter/AdvancedTextFormatter.php \Drupal\advanced_text_formatter\Plugin\Field\FieldFormatter\AdvancedTextFormatter::defaultSettings()
  2. 2.0.x src/Plugin/Field/FieldFormatter/AdvancedTextFormatter.php \Drupal\advanced_text_formatter\Plugin\Field\FieldFormatter\AdvancedTextFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/AdvancedTextFormatter.php, line 39

Class

AdvancedTextFormatter
Plugin implementation of the 'advanced_text_formatter' formatter.

Namespace

Drupal\advanced_text_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'trim_length' => 600,
    'ellipsis' => 1,
    'word_boundary' => 1,
    'token_replace' => 0,
    'filter' => 'input',
    'format' => 'plain_text',
    'allowed_html' => '<a> <b> <br> <dd> <dl> <dt> <em> <i> <li> <ol> <p> <strong> <u> <ul>',
    'autop' => 0,
    'use_summary' => 0,
  ] + parent::defaultSettings();
}