You are here

public static function DefaultParagraphsWidget::defaultSettings in Default Paragraphs 8

Defines the default settings for this plugin.

Return value

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

Overrides ParagraphsWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/DefaultParagraphsWidget.php, line 104

Class

DefaultParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\default_paragraphs\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'title' => t('Paragraph'),
    'title_plural' => t('Paragraphs'),
    'edit_mode' => 'closed',
    'closed_mode' => 'summary',
    'autocollapse' => 'none',
    'add_mode' => 'dropdown',
    'form_display_mode' => 'default',
    'default_paragraph_types' => [],
  ];
}