You are here

public function ColorData::getHexadecimal in Color API 8

Retrieve the hexadecimal color string representation of the color.

Return value

string The hexadecimal string representation of the color.

Overrides ColorInterface::getHexadecimal

1 call to ColorData::getHexadecimal()
ColorData::getValue in src/Plugin/DataType/ColorData.php
Gets the data value.

File

src/Plugin/DataType/ColorData.php, line 52

Class

ColorData
Provides the Color Typed Data type.

Namespace

Drupal\colorapi\Plugin\DataType

Code

public function getHexadecimal() {
  return $this
    ->get('hexadecimal')
    ->getValue();
}