public static function ColorboxFieldFormatter::defaultSettings in Colorbox field formatter 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/ColorboxFieldFormatter.php \Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatter\ColorboxFieldFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
1 call to ColorboxFieldFormatter::defaultSettings()
- ColorboxFieldFormatterImage::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatterImage.php - Defines the default settings for this plugin.
1 method overrides ColorboxFieldFormatter::defaultSettings()
- ColorboxFieldFormatterImage::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatterImage.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ ColorboxFieldFormatter.php, line 90
Class
- ColorboxFieldFormatter
- Plugin implementation of the 'colorbox_field_formatter' formatter.
Namespace
Drupal\colorbox_field_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'style' => 'default',
'link_type' => 'content',
'link' => '',
'width' => '500',
'height' => '500',
'iframe' => 0,
'inline_selector' => '',
'anchor' => '',
'class' => '',
'rel' => '',
] + parent::defaultSettings();
}