Same name in other branches
- 8.x-2.x src/ColorHSL.php \Drupal\color_field\ColorHSL::toHex()
Overrides ColorInterface::toHex
Fichier
-
src/
ColorHSL.php, line 116
Classe
- ColorHSL
- RGB represents the RGB color format.
Namespace
Drupal\color_fieldCode
public function toHex() : ColorHex {
return $this->toRGB()
->toHex();
}