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

Get the color as an HSL instance.

Return value

\Drupal\color_field\ColorHSL The color as an HSL instance.

4 methods override ColorInterface::toHsl()
ColorCMY::toHsl in src/ColorCMY.php
Get the color as an HSL instance.
ColorHex::toHsl in src/ColorHex.php
Get the color as an HSL instance.
ColorHSL::toHsl in src/ColorHSL.php
Get the color as an HSL instance.
ColorRGB::toHsl in src/ColorRGB.php
Get the color as an HSL instance.

File

src/ColorInterface.php, line 42

Class

ColorInterface
Defines a common interface for color classes.

Namespace

Drupal\color_field

Code

public function toHsl() : ColorHSL;