You are here

public function ColorItem::getBlue in Color API 8

Retrieve 'Blue' 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.

Overrides ColorItemInterface::getBlue

File

src/Plugin/Field/FieldType/ColorItem.php, line 189

Class

ColorItem
Provides the Color field.

Namespace

Drupal\colorapi\Plugin\Field\FieldType

Code

public function getBlue() {
  return $this
    ->get('color')
    ->getBlue();
}