Same name and namespace in other branches
- 3.0.x src/ColorHSL.php \Drupal\color_field\ColorHSL::toHex()
Overrides ColorInterface::toHex
File
-
src/
ColorHSL.php, line 115
Class
- ColorHSL
- RGB represents the RGB color format.
Namespace
Drupal\color_fieldCode
public function toHex() {
return $this->toRGB()
->toHex();
}