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