Same name and namespace in other branches
  1. 8.x-2.x src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php \Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterCss::defaultSettings() 1 comment

File

src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php, line 268

Class

ColorFieldFormatterCss
Plugin implementation of the color_field css declaration formatter.

Namespace

Drupal\color_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() : array {
    return [
        'selector' => 'body',
        'property' => 'background-color',
        'important' => TRUE,
        'opacity' => TRUE,
        'advanced' => FALSE,
        'css' => '',
    ] + parent::defaultSettings();
}