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