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

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 dans src/ColorCMY.php
Get the color as an HSL instance.
ColorHex::toHsl dans src/ColorHex.php
Get the color as an HSL instance.
ColorHSL::toHsl dans src/ColorHSL.php
Get the color as an HSL instance.
ColorRGB::toHsl dans src/ColorRGB.php
Get the color as an HSL instance.

Fichier

src/ColorInterface.php, line 42

Classe

ColorInterface
Defines a common interface for color classes.

Namespace

Drupal\color_field

Code

public function toHsl() : ColorHSL;