public function ColorRGB::toRgb in Color Field 8.2
Get the color as a RGB instance.
Return value
\Drupal\color_field\ColorRGB The color as a RGB instance.
Overrides ColorInterface::toRgb
File
- src/
ColorRGB.php, line 122
Class
- ColorRGB
- RGB represents the RGB color format.
Namespace
Drupal\color_fieldCode
public function toRgb() {
return $this;
}