Same name 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 dans src/
ColorCMY.php - Get the color as a RGB instance.
- ColorCMYK::toRgb dans src/
ColorCMYK.php - Get the color as a RGB instance.
- ColorHex::toRgb dans src/
ColorHex.php - Get the color as a RGB instance.
- ColorHSL::toRgb dans src/
ColorHSL.php - Get the color as a RGB instance.
- ColorRGB::toRgb dans src/
ColorRGB.php - Get the color as a RGB instance.
Fichier
-
src/
ColorInterface.php, line 32
Classe
- ColorInterface
- Defines a common interface for color classes.
Namespace
Drupal\color_fieldCode
public function toRgb();