You are here

public function ColorInterface::getRed in Color API 8

Same name in this branch
  1. 8 src/Entity/ColorInterface.php \Drupal\colorapi\Entity\ColorInterface::getRed()
  2. 8 src/Plugin/DataType/ColorInterface.php \Drupal\colorapi\Plugin\DataType\ColorInterface::getRed()

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 ColorInterface::getRed()
Color::getRed in src/Entity/Color.php
Retrieve 'Red' value of the Color Field Color data object RGB property.

File

src/Entity/ColorInterface.php, line 38

Class

ColorInterface
Intefrface for Color Entities.

Namespace

Drupal\colorapi\Entity

Code

public function getRed();