Color |
class |
core/lib/Drupal/Core/Render/Element/Color.php |
Provides a form element for choosing a color. |
Color |
class |
core/lib/Drupal/Component/Utility/Color.php |
Performs color conversions. |
Color.php |
file |
core/lib/Drupal/Core/Render/Element/Color.php |
|
Color.php |
file |
core/lib/Drupal/Component/Utility/Color.php |
|
Color::getInfo |
function |
core/lib/Drupal/Core/Render/Element/Color.php |
Returns the element properties for this element. |
Color::hexToRgb |
function |
core/lib/Drupal/Component/Utility/Color.php |
Parses a hexadecimal color string like '#abc' or '#aabbcc'. |
Color::normalizeHexLength |
function |
core/lib/Drupal/Component/Utility/Color.php |
Normalize the hex color length to 6 characters for comparison. |
Color::preRenderColor |
function |
core/lib/Drupal/Core/Render/Element/Color.php |
Prepares a #type 'color' render element for input.html.twig. |
Color::rgbToHex |
function |
core/lib/Drupal/Component/Utility/Color.php |
Converts RGB color arrays or strings to lowercase CSS notation. |
Color::validateColor |
function |
core/lib/Drupal/Core/Render/Element/Color.php |
Form element validation handler for #type 'color'. |
Color::validateHex |
function |
core/lib/Drupal/Component/Utility/Color.php |
Validates whether a hexadecimal color value is syntactically correct. |
ColorTest |
class |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Tests Color utility class conversions. |
ColorTest.php |
file |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
|
ColorTest::providerTestHexToRgb |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Data provider for testHexToRgb(). |
ColorTest::providerTestNormalizeHexLength |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Data provider for testNormalizeHexLength(). |
ColorTest::providerTestRbgToHex |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Data provider for testRgbToHex(). |
ColorTest::providerTestValidateHex |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Provides data for testValidateHex(). |
ColorTest::testHexToRgb |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Tests Color::hexToRgb(). |
ColorTest::testNormalizeHexLength |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Tests Color::normalizeHexLength(). |
ColorTest::testRgbToHex |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
Tests Color::rgbToHex(). |
ColorTest::testValidateHex |
function |
core/tests/Drupal/Tests/Component/Utility/ColorTest.php |
@covers \Drupal\Component\Utility\Color::validateHex[[api-linebreak]] |
TestEntityFormInjected::$color |
property |
core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php |
The color of the entity type. |