public static function LightgalleryFormatter::defaultSettings in Lightgallery 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/ FieldFormatter/ LightgalleryFormatter.php, line 34
Class
- LightgalleryFormatter
- Light gallery formatter.
Namespace
Drupal\lightgallery\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$default_settings = [];
$lightgallery_groups = GroupsEnum::toArray();
foreach ($lightgallery_groups as $lightgallery_group) {
$default_settings[$lightgallery_group] = [];
}
return $default_settings + parent::defaultSettings();
}