Same name in other branches
- 8.x-2.x src/ColorBase.php \Drupal\color_field\ColorBase::setOpacity()
Set the opacity.
1 call to ColorBase::setOpacity()
- ColorHex::__construct in src/
ColorHex.php - Create a new Hex from a string.
File
-
src/
ColorBase.php, line 200
Class
- ColorBase
- Base color class to ease implementations.
Namespace
Drupal\color_fieldCode
public function setOpacity(float $opacity) : void {
$this->opacity = $opacity;
}