public function ColorInterface::getRgb in Color API 8
Same name in this branch
- 8 src/Entity/ColorInterface.php \Drupal\colorapi\Entity\ColorInterface::getRgb()
- 8 src/Plugin/DataType/ColorInterface.php \Drupal\colorapi\Plugin\DataType\ColorInterface::getRgb()
Retrieve RGB value array of the Color data ojbect..
Return value
array An array containing the following keys:
- red: The value for the RGB "red". An integer between 0 and 255.
- green: The value for the RGB "green". An integer between 0 and 255.
- blue: The value for the RGB "blue". An integer between 0 and 255.
1 method overrides ColorInterface::getRgb()
- ColorData::getRgb in src/
Plugin/ DataType/ ColorData.php - Retrieve RGB value array of the Color data ojbect..
File
- src/
Plugin/ DataType/ ColorInterface.php, line 58
Class
- ColorInterface
- Interface for the Typed Data Color Complex Data type.
Namespace
Drupal\colorapi\Plugin\DataTypeCode
public function getRgb();