You are here

public static function ParagraphsWidget::defaultSettings in Paragraphs 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/FieldWidget/ParagraphsWidget.php, line 123

Class

ParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\paragraphs\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return array(
    'title' => t('Paragraph'),
    'title_plural' => t('Paragraphs'),
    'edit_mode' => 'open',
    'closed_mode' => 'summary',
    'autocollapse' => 'none',
    'closed_mode_threshold' => 0,
    'add_mode' => 'dropdown',
    'form_display_mode' => 'default',
    'default_paragraph_type' => '',
    'features' => [
      'duplicate' => 'duplicate',
      'collapse_edit_all' => 'collapse_edit_all',
    ],
  );
}