public function ColorCMYK::toString in Color Field 8.2
A string representation of this color in the current format.
Parameters
bool $opacity: Whether or not to display the opacity.
Return value
string The color in format: #RRGGBB.
Overrides ColorInterface::toString
File
- src/
ColorCMYK.php, line 109
Class
- ColorCMYK
- ColorCMYK represents the CMYK color format.
Namespace
Drupal\color_fieldCode
public function toString($opacity = TRUE) {
return $this
->toHex()
->toString($opacity);
}