Same name and namespace in other branches
- 8.x-2.x src/ColorCMY.php \Drupal\color_field\ColorCMY::toHex() 1 comment
Overrides ColorInterface::toHex
File
-
src/
ColorCMY.php, line 98
Class
- ColorCMY
- ColorCMY represents the CMY color format.
Namespace
Drupal\color_fieldCode
public function toHex() : ColorHex {
return $this->toRgb()
->toHex();
}