public function ColorData::setBlue in Color API 8
Set 'blue' property of the Color Data'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.
Overrides ColorInterface::setBlue
File
- src/
Plugin/ DataType/ ColorData.php, line 101
Class
- ColorData
- Provides the Color Typed Data type.
Namespace
Drupal\colorapi\Plugin\DataTypeCode
public function setBlue($blue, $notify = TRUE) {
$this
->get('rgb')
->setBlue($blue, $notify);
}