Same name and namespace in other branches
- 3.0.x src/ColorHex.php \Drupal\color_field\ColorHex::toHex()
Get the color as a hex instance.
Return value
\Drupal\color_field\ColorHex The color as a hex instance.
Overrides ColorInterface::toHex
File
-
src/
ColorHex.php, line 72
Class
- ColorHex
- Hex represents the Hex color format.
Namespace
Drupal\color_fieldCode
public function toHex() {
return $this;
}