public function ColorInterface::toString in Color Field 8.2
Get the color as a string.
Return value
string The color as a string.
5 methods override ColorInterface::toString()
- ColorCMY::toString in src/
ColorCMY.php - A string representation of this color in the current format.
- ColorCMYK::toString in src/
ColorCMYK.php - A string representation of this color in the current format.
- ColorHex::toString in src/
ColorHex.php - A string representation of this color in the current format.
- ColorHSL::toString in src/
ColorHSL.php - A string representation of this color in the current format.
- ColorRGB::toString in src/
ColorRGB.php - A string representation of this color in the current format.
File
- src/
ColorInterface.php, line 16
Class
- ColorInterface
- Defines a common interface for color classes.
Namespace
Drupal\color_fieldCode
public function toString();