public function JQueryColorpickerDefaultWidget::__construct in Jquery Colorpicker 8
Constructs a JQueryColorpickerDefaultWidget object.
Parameters
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
array $settings: The field settings.
array $third_party_settings: Third party field settings.
Drupal\jquery_colorpicker\Service\JQueryColorpickerServiceInterface $jQueryColorpickerService: The jQuery Colorpicker service.
Overrides WidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ JQueryColorpickerDefaultWidget.php, line 50
Class
- JQueryColorpickerDefaultWidget
- The default jquery_colorpicker field widget.
Namespace
Drupal\jquery_colorpicker\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, JQueryColorpickerServiceInterface $jQueryColorpickerService) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->JQueryColorpickerService = $jQueryColorpickerService;
}