Same name and namespace in other branches
  1. 8.x-2.x src/ColorInterface.php \Drupal\color_field\ColorInterface::toString() 1 comment

Get the color as a string.

Return value

string The color as a string.

4 methods override ColorInterface::toString()
ColorCMY::toString in src/ColorCMY.php
A string representation of this color in the current format.
ColorHex::toString in src/ColorHex.php
A string representation of this color in the current format.
ColorHSL::toString in src/ColorHSL.php
A string representation of this color in the current format.
ColorRGB::toString in src/ColorRGB.php
A string representation of this color in the current format.

File

src/ColorInterface.php, line 18

Class

ColorInterface
Defines a common interface for color classes.

Namespace

Drupal\color_field

Code

public function toString() : string;