public static function ParagraphViewModeWidget::defaultSettings in Paragraph View Mode 2.x
Same name and namespace in other branches
- 8 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 50
Class
- ParagraphViewModeWidget
- Plugin implementation of the 'paragraph_view_mode' widget.
Namespace
Drupal\paragraph_view_mode\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'view_modes' => self::getAvailableViewModes(),
'default_view_mode' => ViewModeInterface::DEFAULT,
];
}