Same name and namespace in other branches
- 3.0.x src/ColorInterface.php \Drupal\color_field\ColorInterface::toRgb()
Get the color as a RGB instance.
Return value
\Drupal\color_field\ColorRGB The color as a RGB instance.
5 methods override ColorInterface::toRgb()
- ColorCMY::toRgb in src/
ColorCMY.php - Get the color as a RGB instance.
- ColorCMYK::toRgb in src/
ColorCMYK.php - Get the color as a RGB instance.
- ColorHex::toRgb in src/
ColorHex.php - Get the color as a RGB instance.
- ColorHSL::toRgb in src/
ColorHSL.php - Get the color as a RGB instance.
- ColorRGB::toRgb in src/
ColorRGB.php - Get the color as a RGB instance.
File
-
src/
ColorInterface.php, line 32
Class
- ColorInterface
- Defines a common interface for color classes.
Namespace
Drupal\color_fieldCode
public function toRgb();