function OliveroHexToHslTest::hexCodes
Same name in other branches
- 11.x core/themes/olivero/tests/src/Unit/OliveroHexToHslTest.php \Drupal\Tests\olivero\Unit\OliveroHexToHslTest::hexCodes()
Data provider of hex codes and HSL values.
Return value
array[] The test data.
File
-
core/
themes/ olivero/ tests/ src/ Unit/ OliveroHexToHslTest.php, line 44
Class
- OliveroHexToHslTest
- Tests the _olivero_hex_to_hsl() function.
Namespace
Drupal\Tests\olivero\UnitCode
public static function hexCodes() : array {
return [
'Blue Lagoon' => [
'#1b9ae4',
[
202,
79,
50,
],
],
'Firehouse' => [
'#a30f0f',
[
0,
83,
35,
],
],
'Ice' => [
'#57919e',
[
191,
29,
48,
],
],
'Plum' => [
'#7a4587',
[
288,
32,
40,
],
],
'Slate' => [
'#47625b',
[
164,
16,
33,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.