Same name and namespace in other branches
  1. 3.0.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 30

Class

ColorBase
Base color class to ease implementations.

Namespace

Drupal\color_field

Code

public function setOpacity($opacity) {
    $this->opacity = $opacity;
}