You are here

public static function MediaLibraryWidget::defaultSettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php \Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php, line 121

Class

MediaLibraryWidget
Plugin implementation of the 'media_library_widget' widget.

Namespace

Drupal\media_library\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'media_types' => [],
  ] + parent::defaultSettings();
}