You are here

public static function ParagraphViewModeWidget::defaultSettings in Paragraph View Mode 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldWidget/ParagraphViewModeWidget.php \Drupal\paragraph_view_mode\Plugin\Field\FieldWidget\ParagraphViewModeWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides StringTextfieldWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/ParagraphViewModeWidget.php, line 65

Class

ParagraphViewModeWidget
Plugin implementation of the 'paragraph_view_mode' widget.

Namespace

Drupal\paragraph_view_mode\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'view_modes' => self::getAvailableViewModes(),
    'default_view_mode' => ViewModeInterface::DEFAULT,
  ];
}