public static function TwentyTwentyFieldFormatter::defaultSettings in ZURB TwentyTwenty 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/TwentyTwentyFieldFormatter.php \Drupal\zurb_twentytwenty\Plugin\Field\FieldFormatter\TwentyTwentyFieldFormatter::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
- src/
Plugin/ Field/ FieldFormatter/ TwentyTwentyFieldFormatter.php, line 93 - Contains Drupal\zurb_twentytwenty\Plugin\Field\FieldFormatter\TwentyTwentyFieldFormatter.
Class
- TwentyTwentyFieldFormatter
- Plugin implementation of the 'twentytwenty_field_formatter' formatter.
Namespace
Drupal\zurb_twentytwenty\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'image_style' => '',
'default_offset_pct' => '0.5',
'orientation' => 'horizontal',
'before_label' => 'Before',
'after_label' => 'After',
'no_overlay' => false,
'move_slider_on_hover' => false,
'move_with_handle_only' => true,
'click_to_move' => false,
) + parent::defaultSettings();
}