Same name in other branches
- 8.x-2.x src/ColorInterface.php \Drupal\color_field\ColorInterface::toString()
Get the color as a string.
Return value
string The color as a string.
4 methods override ColorInterface::toString()
- ColorCMY::toString dans src/
ColorCMY.php - A string representation of this color in the current format.
- ColorHex::toString dans src/
ColorHex.php - A string representation of this color in the current format.
- ColorHSL::toString dans src/
ColorHSL.php - A string representation of this color in the current format.
- ColorRGB::toString dans src/
ColorRGB.php - A string representation of this color in the current format.
Fichier
-
src/
ColorInterface.php, line 18
Classe
- ColorInterface
- Defines a common interface for color classes.
Namespace
Drupal\color_fieldCode
public function toString() : string;