public static function OrbitFormatter::defaultSettings in ZURB Orbit 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides ImageFormatter::defaultSettings
2 calls to OrbitFormatter::defaultSettings()
- OrbitFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ OrbitFormatter.php - Builds a renderable array for a field value.
- OrbitMediaFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ OrbitMediaFormatter.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ OrbitFormatter.php, line 28
Class
- OrbitFormatter
- Plugin implementation of the 'Orbit' formatter.
Namespace
Drupal\field_orbit\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'animInFromRight' => 'slide-in-right',
'animOutToRight' => 'slide-out-right',
'animInFromLeft' => 'slide-in-left',
'animOutToLeft' => 'slide-out-left',
'caption' => '',
'caption_link' => '',
'autoPlay' => TRUE,
'timerDelay' => 5000,
'infiniteWrap' => TRUE,
'swipe' => TRUE,
'pauseOnHover' => TRUE,
'accessible' => TRUE,
'bullets' => TRUE,
'navButtons' => TRUE,
'containerClass' => 'orbit-container',
'slideClass' => 'orbit-slide',
'boxOfBullets' => 'orbit-bullets',
'nextClass' => 'orbit-next',
'prevClass' => 'orbit-previous',
] + parent::defaultSettings();
}