Same name and namespace in other branches
  1. 8.x-2.x src/ColorInterface.php \Drupal\color_field\ColorInterface::toRgb() 1 comment

Get the color as an RGB instance.

Return value

\Drupal\color_field\ColorRGB The color as an RGB instance.

4 methods override ColorInterface::toRgb()
ColorCMY::toRgb in src/ColorCMY.php
Get the color as an RGB instance.
ColorHex::toRgb in src/ColorHex.php
Get the color as an RGB instance.
ColorHSL::toRgb in src/ColorHSL.php
Get the color as an RGB instance.
ColorRGB::toRgb in src/ColorRGB.php
Get the color as an RGB instance.

File

src/ColorInterface.php, line 34

Class

ColorInterface
Defines a common interface for color classes.

Namespace

Drupal\color_field

Code

public function toRgb() : ColorRGB;