You are here

public function ColorItemInterface::setBlue in Color API 8

Set 'blue' property of the Color Field 'Color' property's 'RGB' property.

Parameters

string $blue: The value for the RGB "blue" property. An integer between 0 and 255.

bool $notify: Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again.

1 method overrides ColorItemInterface::setBlue()
ColorItem::setBlue in src/Plugin/Field/FieldType/ColorItem.php
Set 'blue' property of the Color Field 'Color' property's 'RGB' property.

File

src/Plugin/Field/FieldType/ColorItemInterface.php, line 163

Class

ColorItemInterface
Interface for Field API Color items.

Namespace

Drupal\colorapi\Plugin\Field\FieldType

Code

public function setBlue($blue, $notify = TRUE);