public function ColorItemInterface::getRed in Color API 8
Retrieve 'Red' value of the Color Field Color data object RGB property.
Return value
array The value for the RGB "red". An integer between 0 and 255.
1 method overrides ColorItemInterface::getRed()
- ColorItem::getRed in src/
Plugin/ Field/ FieldType/ ColorItem.php - Retrieve 'Red' value of the Color Field Color data object RGB property.
File
- src/
Plugin/ Field/ FieldType/ ColorItemInterface.php, line 131
Class
- ColorItemInterface
- Interface for Field API Color items.
Namespace
Drupal\colorapi\Plugin\Field\FieldTypeCode
public function getRed();