Same name and namespace in other branches
- 3.0.x src/ColorHSL.php \Drupal\color_field\ColorHSL::toHsl()
Get the color as a HSL instance.
Return value
\Drupal\color_field\ColorHSL The color as a HSL instance.
Overrides ColorInterface::toHsl
File
-
src/
ColorHSL.php, line 182
Class
- ColorHSL
- RGB represents the RGB color format.
Namespace
Drupal\color_fieldCode
public function toHsl() {
return $this;
}