You are here

public static function ParagraphsTrimmedFormatterBase::defaultSettings in Paragraphs Trimmed 8

Defines the default settings for this plugin.

Return value

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

Overrides EntityReferenceRevisionsEntityFormatter::defaultSettings

1 call to ParagraphsTrimmedFormatterBase::defaultSettings()
ParagraphsSmartTrimFormatter::defaultSettings in modules/paragraphs_smart_trim/src/Plugin/Field/FieldFormatter/ParagraphsSmartTrimFormatter.php
Defines the default settings for this plugin.
1 method overrides ParagraphsTrimmedFormatterBase::defaultSettings()
ParagraphsSmartTrimFormatter::defaultSettings in modules/paragraphs_smart_trim/src/Plugin/Field/FieldFormatter/ParagraphsSmartTrimFormatter.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/ParagraphsTrimmedFormatterBase.php, line 96

Class

ParagraphsTrimmedFormatterBase
Base class for paragraph trimmed formatters.

Namespace

Drupal\paragraphs_trimmed\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $default_settings = \Drupal::service('plugin.manager.field.formatter')
    ->getDefaultSettings(static::getTrimFormatterType());
  return [
    'summary_field' => '',
    'format' => 'full_html',
  ] + parent::defaultSettings() + $default_settings;
}