public function ColorInterface::setRed in Color API 8
Set 'red' property of the Color Data's 'RGB' property.
Parameters
string $red: The value for the RGB "red" 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 ColorInterface::setRed()
- ColorData::setRed in src/
Plugin/ DataType/ ColorData.php - Set 'red' property of the Color Data's 'RGB' property.
File
- src/
Plugin/ DataType/ ColorInterface.php, line 70
Class
- ColorInterface
- Interface for the Typed Data Color Complex Data type.
Namespace
Drupal\colorapi\Plugin\DataTypeCode
public function setRed($red, $notify = TRUE);