You are here

public static function SmartTrimFormatter::defaultSettings in Smart Trim 8

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/SmartTrimFormatter.php, line 39

Class

SmartTrimFormatter
Plugin implementation of the 'smart_trim' formatter.

Namespace

Drupal\smart_trim\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'trim_length' => '600',
    'trim_type' => 'chars',
    'trim_suffix' => '',
    'wrap_output' => 0,
    'wrap_class' => 'trimmed',
    'more_link' => 0,
    'more_class' => 'more-link',
    'more_text' => 'More',
    'more_aria_label' => 'Read more about [node:title]',
    'summary_handler' => 'full',
    'trim_options' => [],
  ] + parent::defaultSettings();
}