Search for variable

  1. Search 7.x for variable
  2. Search 9.5.x for variable
  3. Search 8.9.x for variable
  4. Search 10.3.x for variable
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Variable class core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Drupal 6/7 variable source from database.
Variable class core/lib/Drupal/Component/Utility/Variable.php Provides helpers for dealing with variables.

All search results

Title Object type File name Summary
Drupal6SqlBaseTest::testVariableGet function core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php Tests for Drupal6SqlBase::variableGet().
DrupalSqlBase::variableGet function core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php Reads a variable from a source Drupal database.
EngineTwigTest::testTwigVariableDataTypes function core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php Tests that the Twig engine handles PHP data correctly.
EnvironmentSupportValidator::VARIABLE_NAME constant core/modules/package_manager/src/Validator/EnvironmentSupportValidator.php The name of the environment variable to check.
FieldInputValueNormalizerTraitTest::testKeyValueByDeltaUndefinedVariables function core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php @covers ::normalizeValue[[api-linebreak]]
hook_template_preprocess_default_variables_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the default variables for all templates.
InputTest::testDefaultInputFromEnvironmentVariables function core/tests/Drupal/KernelTests/Core/Recipe/InputTest.php Tests getting default input values from environment variables.
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.
MigrateDefaultLanguageTest::testMigrationWithUnsetVariable function core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php Tests language_default migration with unset default language variable.
MigrateDefaultLanguageTest::testMigrationWithUnsetVariable function core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php Tests language_default migration with unset default language variable.
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[[api-linebreak]]
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.
StubVariableTestClass class core/tests/Drupal/Tests/Component/Utility/VariableTest.php No-op test class for VariableTest::testExport().
TestController::variable function core/modules/system/tests/modules/content_negotiation_test/src/Controller/TestController.php Returns a render array depending on some passed in value.
TestDrupal6SqlBase::variableGetWrapper function core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php Wrapper method to test protected method variableGet().
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().
ThemeManager::$defaultVariables property core/lib/Drupal/Core/Theme/ThemeManager.php Default variables.
ThemeManager::getDefaultTemplateVariables function core/lib/Drupal/Core/Theme/ThemeManager.php Returns default template variables.
TwigDeprecationsTest::testAssignedVariableDeprecation function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test deprecation of variables assigned inside template triggers no error.
TwigDeprecationsTest::testParentVariableDeprecation function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test deprecation of variables in parent does not leak to child.
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>
UserHooks::templatePreprocessDefaultVariablesAlter function core/modules/user/src/Hook/UserHooks.php Implements hook_template_preprocess_default_variables_alter().
Variable class core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Drupal 6/7 variable source from database.
Variable class core/lib/Drupal/Component/Utility/Variable.php Provides helpers for dealing with variables.
Variable.php file core/lib/Drupal/Component/Utility/Variable.php
Variable.php file core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php
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.
Variable::callableToString function core/lib/Drupal/Component/Utility/Variable.php Generates a human-readable name for a callable.
Variable::doCount function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Gets the source count using countQuery().
Variable::export function core/lib/Drupal/Component/Utility/Variable.php Drupal-friendly var_export().
Variable::fields function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Returns available fields on the source.
Variable::getIds function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Defines the source fields uniquely identifying a source row.
Variable::initializeIterator function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Initializes the iterator with the source data.
Variable::query function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Prepares query object to retrieve data from the source database.
Variable::values function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Return the values of the variables specified in the plugin configuration.
Variable::__construct function core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php Constructs a \Drupal\Component\Plugin\PluginBase object.
VariableMultiRow class core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php Drupal 6/7 multiple variables source from database.
VariableMultiRow.php file core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php
VariableMultiRow::fields function core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php Returns available fields on the source.

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