public static function FotoramaGalleryFormatter::defaultSettings in Fotorama Gallery 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/FotoramaGalleryFormatter.php \Drupal\fotorama_gallery\Plugin\Field\FieldFormatter\FotoramaGalleryFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides ImageFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ FotoramaGalleryFormatter.php, line 105
Class
- FotoramaGalleryFormatter
- Plugin implementation of the 'fotorama_gallery display' formatter.
Namespace
Drupal\fotorama_gallery\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'dimensions' => [],
'others' => [
'fit' => 0,
'allowfullscreen' => 0,
'loop' => TRUE,
'shuffle' => TRUE,
'keyboard' => TRUE,
'arrows' => 0,
'click' => TRUE,
'swipe' => TRUE,
'trackpad' => TRUE,
],
'autoplay' => [
'stopautoplayontouch' => FALSE,
],
'navigation' => [
'nav' => 0,
'navposition' => 0,
],
'transition' => [
'transition' => 0,
],
] + parent::defaultSettings();
}