Search for color

  1. Search 7.x for color
  2. Search 9.5.x for color
  3. Search 10.3.x for color
  4. Search 11.x for color
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Color class core/modules/color/src/Plugin/migrate/destination/Color.php Persist color data to the config system.
Color class core/modules/color/src/Plugin/migrate/source/d7/Color.php Drupal 7 color source from database.
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.

All search results

Title Object type File name Summary
ColorTest::testValidateHex function core/tests/Drupal/Tests/Component/Utility/ColorTest.php @covers \Drupal\Component\Utility\Color::validateHex
ColorTest::testValidColor function core/modules/color/tests/src/Functional/ColorTest.php Tests whether the provided color is valid.
ColorTest::_testColor function core/modules/color/tests/src/Functional/ColorTest.php Tests the Color module functionality using the given theme.
color_block_view_pre_render function core/modules/color/color.module #pre_render callback: Sets color preset logo.
color_block_view_system_branding_block_alter function core/modules/color/color.module Implements hook_block_view_BASE_BLOCK_ID_alter().
color_form_system_theme_settings_alter function core/modules/color/color.module Implements hook_form_FORM_ID_alter().
color_get_info function core/modules/color/color.module Retrieves the Color module information for a particular theme.
color_get_palette function core/modules/color/color.module Retrieves the color palette for a particular theme.
color_help function core/modules/color/color.module Implements hook_help().
color_library_info_alter function core/modules/color/color.module Implements hook_library_info_alter().
color_palette_color_value function core/modules/color/color.module Determines the value for a palette color field.
color_requirements function core/modules/color/color.install Implements hook_requirements().
color_scheme_form function core/modules/color/color.module Form constructor for the color configuration form for a particular theme.
color_scheme_form_submit function core/modules/color/color.module Form submission handler for color_scheme_form().
color_scheme_form_validate function core/modules/color/color.module Form validation handler for color_scheme_form().
color_test.info.yml file core/modules/color/tests/modules/color_test/color_test.info.yml core/modules/color/tests/modules/color_test/color_test.info.yml
color_test_theme.info.yml file core/modules/color/tests/modules/color_test/themes/color_test_theme/color_test_theme.info.yml core/modules/color/tests/modules/color_test/themes/color_test_theme/color_test_theme.info.yml
color_test_theme.libraries.yml file core/modules/color/tests/modules/color_test/themes/color_test_theme/color_test_theme.libraries.yml core/modules/color/tests/modules/color_test/themes/color_test_theme/color_test_theme.libraries.yml
color_test_theme.schema.yml file core/modules/color/tests/modules/color_test/themes/color_test_theme/config/schema/color_test_theme.schema.yml core/modules/color/tests/modules/color_test/themes/color_test_theme/config/schema/color_test_theme.schema.yml
color_theme function core/modules/color/color.module Implements hook_theme().
color_valid_hexadecimal_string function core/modules/color/color.module Determines if a hexadecimal CSS color string is valid.
d7_color.yml file core/modules/color/migrations/d7_color.yml core/modules/color/migrations/d7_color.yml
FormTest::testColorValidation function core/modules/system/tests/src/Functional/Form/FormTest.php Tests validation of #type 'color' elements.
FormTestColorForm class core/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php Form constructor for testing #type 'color' elements.
FormTestColorForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php
FormTestColorForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php Form constructor.
FormTestColorForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php Returns a unique string identifying the form.
FormTestColorForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php Form submission handler.
GDToolkit::getTransparentColor function core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php Gets the color set for transparency in GIF images.
MigrateColorTest class core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php Tests migration of Color variables to configuration.
MigrateColorTest.php file core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php
MigrateColorTest::$modules property core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php Modules to enable.
MigrateColorTest::setUp function core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php
MigrateColorTest::testMigrateColor function core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php Tests migration of color's variables to configuration.
ShapeOnlyColorEditableWidget class core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php Plugin implementation of the 'shape_only_color_editable_widget' widget.
ShapeOnlyColorEditableWidget.php file core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
ShapeOnlyColorEditableWidget::formElement function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php Returns the form for a single field widget.
template_preprocess_color_scheme_form function core/modules/color/color.module Prepares variables for color scheme form templates.
TestEntityFormInjected::$color property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php The color of the entity type.
ToolkitGdTest::colorsAreEqual function core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php Function to compare two colors by RGBa.
ToolkitGdTest::getPixelColor function core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php Function for finding a pixel's RGBa values.
_color_blend function core/modules/color/color.module Blends two hex colors and returns the GD color.
_color_gd function core/modules/color/color.module Converts a hex triplet into a GD color.
_color_hsl2rgb function core/modules/color/color.module Converts an HSL triplet into RGB.
_color_hue2rgb function core/modules/color/color.module Helper function for _color_hsl2rgb().
_color_pack function core/modules/color/color.module Converts an RGB triplet to a hex color.
_color_render_images function core/modules/color/color.module Renders images that match a given palette.
_color_rewrite_stylesheet function core/modules/color/color.module Rewrites the stylesheet to match the colors in the palette.
_color_rgb2hsl function core/modules/color/color.module Converts an RGB triplet to HSL.
_color_save_stylesheet function core/modules/color/color.module Saves the rewritten stylesheet to disk.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.