public static function FaqFieldAccordionFormatter::defaultSettings in FAQ Field 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/FaqFieldAccordionFormatter.php \Drupal\faqfield\Plugin\Field\FieldFormatter\FaqFieldAccordionFormatter::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/ FaqFieldAccordionFormatter.php, line 25
Class
- FaqFieldAccordionFormatter
- Plugin implementation of the 'faqfield_accordion' formatter.
Namespace
Drupal\faqfield\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'active' => 0,
'heightStyle' => 'auto',
'collapsible' => FALSE,
'event' => 'click',
'animate' => [
'easing' => 'linear',
'duration' => 200,
],
] + parent::defaultSettings();
}