public static function ProductAttributesOverview::defaultSettings in Commerce Core 8.2
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- modules/
product/ src/ Plugin/ Field/ FieldFormatter/ ProductAttributesOverview.php, line 117
Class
- ProductAttributesOverview
- Plugin implementation of the 'commerce_product_attributes_overview' formatter.
Namespace
Drupal\commerce_product\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'attributes' => [],
'view_mode' => 'default',
] + parent::defaultSettings();
}