Search for color
- Search 7.x for color
- Search 9.5.x for color
- Search 8.9.x for color
- Search 10.3.x for color
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Color | class | core/ |
Provides a form element for choosing a color. |
Color | class | core/ |
Performs color conversions. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
Color | class | core/ |
Performs color conversions. |
Color | class | core/ |
Provides a form element for choosing a color. |
color-picker.css | file | core/ |
Color picker styles. These appear within theme settings when selecting a custom color. |
color-picker.pcss.css | file | core/ |
Color picker styles. These appear within theme settings when selecting a custom color. |
Color.php | file | core/ |
|
Color.php | file | core/ |
|
Color::getInfo | function | core/ |
Returns the element properties for this element. |
Color::hexToRgb | function | core/ |
Parses a hexadecimal color string like '#abc' or '#aabbcc'. |
Color::normalizeHexLength | function | core/ |
Normalize the hex color length to 6 characters for comparison. |
Color::preRenderColor | function | core/ |
Prepares a #type 'color' render element for input.html.twig. |
Color::rgbToHex | function | core/ |
Converts RGB color arrays or strings to lowercase CSS notation. |
Color::validateColor | function | core/ |
Form element validation handler for #type 'color'. |
Color::validateHex | function | core/ |
Validates whether a hexadecimal color value is syntactically correct. |
colors.css | file | core/ |
/* * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/3084859 * @preserve */ /** * Reusable colors. */ .color-success { color: #325e1c; background-color: #f3faef; } .color-warning… |
colors.pcss.css | file | core/ |
/** * Reusable colors. */ .color-success { color: #325e1c; background-color: #f3faef; } .color-warning { color: #734c00; background-color: #fdf8ed; } .color-error { color: #a51b00; background-color: #fcf4f2; } |
ColorTest | class | core/ |
Tests Color utility class conversions. |
ColorTest.php | file | core/ |
|
ColorTest::providerTestHexToRgb | function | core/ |
Data provider for testHexToRgb(). |
ColorTest::providerTestNormalizeHexLength | function | core/ |
Data provider for testNormalizeHexLength(). |
ColorTest::providerTestRbgToHex | function | core/ |
Data provider for testRgbToHex(). |
ColorTest::providerTestValidateHex | function | core/ |
Provides data for testValidateHex(). |
ColorTest::testHexToRgb | function | core/ |
Tests Color::hexToRgb(). |
ColorTest::testNormalizeHexLength | function | core/ |
Tests Color::normalizeHexLength(). |
ColorTest::testRgbToHex | function | core/ |
Tests Color::rgbToHex(). |
ColorTest::testValidateHex | function | core/ |
@covers \Drupal\Component\Utility\Color::validateHex |
FormTest::testColorValidation | function | core/ |
Tests validation of #type 'color' elements. |
FormTestColorForm | class | core/ |
Form constructor for testing #type 'color' elements. |
FormTestColorForm.php | file | core/ |
|
FormTestColorForm::buildForm | function | core/ |
Form constructor. |
FormTestColorForm::getFormId | function | core/ |
Returns a unique string identifying the form. |
FormTestColorForm::submitForm | function | core/ |
Form submission handler. |
GDToolkit::getTransparentColor | function | core/ |
Gets the color set for transparency in GIF images. |
IconExtractorSettingsForm::COLOR_TYPE | constant | core/ |
|
OliveroPostUpdateTest::testOliveroPrimaryColorUpdate | function | core/ |
Tests update hook setting base primary color. |
ShapeOnlyColorEditableWidget | class | core/ |
Plugin implementation of the 'shape_only_color_editable_widget' widget. |
ShapeOnlyColorEditableWidget.php | file | core/ |
|
ShapeOnlyColorEditableWidget::formElement | function | core/ |
Returns the form for a single field widget. |
TestEntityFormInjected::$color | property | core/ |
The color of the entity type. |
ThemeTest::testThemeSettingsColorHexCode | function | core/ |
Tests the theme settings color input. |
ToolkitGdTest::assertColorsAreEqual | function | core/ |
Assert two colors are equal by RGBA, net of full transparency. |
ToolkitGdTest::getPixelColor | function | core/ |
Function for finding a pixel's RGBa values. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.