You are here

public function ColorData::getGreen in Color API 8

Retrieve 'Green' value of the Color data object RGB property.

Return value

array The value for the RGB "green". An integer between 0 and 255.

Overrides ColorInterface::getGreen

File

src/Plugin/DataType/ColorData.php, line 94

Class

ColorData
Provides the Color Typed Data type.

Namespace

Drupal\colorapi\Plugin\DataType

Code

public function getGreen() {
  return $this
    ->get('rgb')
    ->getGreen();
}