You are here

public static function InlineParagraphsWidget::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/InlineParagraphsWidget.php, line 83

Class

InlineParagraphsWidget
Plugin implementation of the 'entity_reference 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',
    'add_mode' => 'dropdown',
    'form_display_mode' => 'default',
    'default_paragraph_type' => '',
  );
}