Search for variables

  1. Search 7.x for variables
  2. Search 9.5.x for variables
  3. Search 8.9.x for variables
  4. Search 11.x for variables
  5. Other projects
Title Object type File name Summary
FieldInputValueNormalizerTraitTest::testKeyValueByDeltaUndefinedVariables function core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php @covers ::normalizeValue
hook_template_preprocess_default_variables_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the default, hook-independent variables for all templates.
InstallerTestBase::refreshVariables function core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php FunctionalTestSetupTrait::refreshVariables() tries to operate on persistent
storage, which is only available after the installer completed.
MigrateLanguageNegotiationSettingsTest::testLanguageNegotiationWithNonExistentVariables function core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageNegotiationSettingsTest.php Tests the migration with non-existent variables.
ParamConversionEnhancer::copyRawVariables function core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php Store a backup of the raw values that corresponding to the route pattern.
ParamConversionEnhancerTest::testCopyRawVariables function core/tests/Drupal/Tests/Core/Enhancer/ParamConversionEnhancerTest.php @covers ::copyRawVariables
RefreshVariablesTrait trait core/lib/Drupal/Core/Test/RefreshVariablesTrait.php Provides a method to refresh in-memory configuration and state information.
RefreshVariablesTrait.php file core/lib/Drupal/Core/Test/RefreshVariablesTrait.php
RefreshVariablesTrait::refreshVariables function core/lib/Drupal/Core/Test/RefreshVariablesTrait.php Refreshes in-memory configuration and state information.
SpecialAttributesRouteSubscriberTest::providerTestOnRouteBuildingInvalidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Provides a list of routes with invalid route variables.
SpecialAttributesRouteSubscriberTest::providerTestOnRouteBuildingValidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Provides a list of routes with valid route variables.
SpecialAttributesRouteSubscriberTest::testOnRouteBuildingInvalidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Tests the onAlterRoutes method for invalid variables.
SpecialAttributesRouteSubscriberTest::testOnRouteBuildingValidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Tests the onAlterRoutes method for valid variables.
StandardPerformanceTest::refreshVariables function core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php Provides an empty implementation to prevent the resetting of caches.
test_theme_preprocess_twig_theme_test_php_variables function core/modules/system/tests/themes/test_theme/test_theme.theme Implements THEME_preprocess_twig_theme_test_php_variables().
TwigThemeTestController::phpVariablesRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing PHP variables in a Twig template.
twig_theme_test.php_variables.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.php_variables.html.twig {# Output for Twig Theme PHP variables test. #}
<ul>
{% for key, php_value in php_values %}
<li>{{ key }}: {{ php_value.value }}</li>
{% endfor %}
</ul>
user_template_preprocess_default_variables_alter function core/modules/user/user.module Implements hook_template_preprocess_default_variables_alter().
Variable::$variables property core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php The variable names to fetch.
Variable::$variablesNoRowIfMissing property core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php The variables that result in no row if any are missing from the source.
variables.css file core/modules/navigation/css/base/variables.css /*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/* This is a universal size that helps in the case of themes with a size of 10 pixels.
We need it root to…
variables.css file core/themes/olivero/css/base/variables.css /*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/

/*
Global CSS custom properties.
*/

/* stylelint-disable */

:root {
--font-sans:…
variables.css file core/themes/claro/css/base/variables.css /*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
:root {
/*
* Color Palette.
*/
--color-absolutezero: var(--color-blue-600);
--color-white: #fff;
variables.pcss.css file core/themes/claro/css/base/variables.pcss.css :root {
/*
* Color Palette.
*/
--color-absolutezero: var(--color-blue-600);
--color-white: #fff;
--color-text: var(--color-gray);
--color-text-light: var(--color-gray-500);
--color-gray-050-o-40: rgba(243, 244, 249, 0.4);
/*…
variables.pcss.css file core/themes/olivero/css/base/variables.pcss.css /*
Global CSS custom properties.
*/

@import "./media-queries.pcss.css";

/* stylelint-disable */

:root {
--font-sans: "metropolis", sans-serif;
--font-serif: "Lora", "georgia", serif;

/* Typography…
variables.pcss.css file core/modules/navigation/css/base/variables.pcss.css @import "../base/media-queries.pcss.css";

/* This is a universal size that helps in the case of themes with a size of 10 pixels.
We need it root to calculate the size of the displace in .dialog-off-canvas-main-canvas */
/* prettier-ignore…
VariableTranslation::$variables property core/modules/migrate_drupal/src/Plugin/migrate/source/d7/VariableTranslation.php The variable names to fetch.
VariableTranslation::$variables property core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php The variable names to fetch.
_template_preprocess_default_variables function core/includes/theme.inc Returns hook-independent variables to template_preprocess().

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