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

File

src/Plugin/Field/FieldWidget/ColorFieldWidgetGrid.php, line 148

Class

ColorFieldWidgetGrid
Plugin implementation of the 'color_field_default' widget.

Namespace

Drupal\color_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() : array {
    return [
        'cell_width' => 10,
        'cell_height' => 10,
        'cell_margin' => 1,
        'box_width' => 115,
        'box_height' => 20,
        'columns' => 16,
    ] + parent::defaultSettings();
}