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

Fichier

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

Classe

ColorFieldFormatterCss
Plugin implementation of the color_field css declaration formatter.

Namespace

Drupal\color_field\Plugin\Field\FieldFormatter

Code

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