public static function ElementClassTrait::elementClassDefaultSettings in Element Class Formatter 8
Default class value.
Parameters
array $settings: The original default settings array.
Return value
array The new default settings array.
7 calls to ElementClassTrait::elementClassDefaultSettings()
- ElementEntityClassTrait::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ ElementEntityClassTrait.php - ElementLinkClassTrait::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ ElementLinkClassTrait.php - ElementListClassTrait::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ ElementListClassTrait.php - EntityReferenceLabelClassFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ EntityReferenceLabelClassFormatter.php - Defines the default settings for this plugin.
- FileLinkClassFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ FileLinkClassFormatter.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ ElementClassTrait.php, line 26
Class
- ElementClassTrait
- Trait ElementClassTrait.
Namespace
Drupal\element_class_formatter\Plugin\Field\FieldFormatterCode
public static function elementClassDefaultSettings(array $settings) {
return [
'class' => '',
] + $settings;
}