Search for token

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

Exact matches

These are exact matches according to your search
Title Object type File name Summary
token service core/core.services.yml Drupal\Core\Utility\Token
Token class core/lib/Drupal/Core/Render/Element/Token.php Stores token data in a hidden form field.
Token class core/lib/Drupal/Core/Utility/Token.php Drupal placeholder/token replacement system.

All search results

Title Object type File name Summary
RoutePathGenerationTraitTest::providerTestCsrfTokenCompleteLifeCycle function core/tests/Drupal/Tests/Core/Access/RoutePathGenerationTraitTest.php Data provider for testCsrfTokenCompleteLifeCycle().
RoutePathGenerationTraitTest::testCsrfTokenCompleteLifeCycle function core/tests/Drupal/Tests/Core/Access/RoutePathGenerationTraitTest.php Tests that CSRF token creation and validation is consistent.
RouteProcessorCsrf::renderPlaceholderCsrfToken function core/lib/Drupal/Core/Access/RouteProcessorCsrf.php Render API callback: Adds a CSRF token for the given path to the markup.
RouteProcessorCsrfTest::$csrfToken property core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php The mock CSRF token generator.
SandboxDatabaseUpdatesValidator::tokensMatchFunctionNamePattern function core/modules/package_manager/src/Validator/SandboxDatabaseUpdatesValidator.php Determines if a set of tokens contain a function name matching a pattern.
SearchTokenizerTest class core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Tests that CJK tokenizer works as intended.
SearchTokenizerTest.php file core/modules/search/tests/src/Kernel/SearchTokenizerTest.php
SearchTokenizerTest::$modules property core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Modules to install.
SearchTokenizerTest::code2utf function core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Like PHP chr() function, but for unicode characters.
SearchTokenizerTest::setUp function core/modules/search/tests/src/Kernel/SearchTokenizerTest.php
SearchTokenizerTest::testNoTokenizer function core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Verifies that strings of non-CJK characters are not tokenized.
SearchTokenizerTest::testTokenizer function core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Verifies that strings of CJK characters are tokenized.
StylePluginBase::$render_tokens property core/modules/views/src/Plugin/views/style/StylePluginBase.php Keyed array by placeholder a cached per row tokens to render.
StylePluginBase::$rowTokens property core/modules/views/src/Plugin/views/style/StylePluginBase.php Store all available tokens row rows.
StylePluginBase::tokenizeValue function core/modules/views/src/Plugin/views/style/StylePluginBase.php Take a value and apply token replacement logic to it.
StylePluginBase::usesTokens function core/modules/views/src/Plugin/views/style/StylePluginBase.php Return TRUE if this style uses tokens.
SynchronizeCsrfTokenSeedTrait trait core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php Synchronizes the child site's CSRF token seed back to the test runner.
SynchronizeCsrfTokenSeedTrait.php file core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php
SynchronizeCsrfTokenSeedTrait::drupalLogin function core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php
SynchronizeCsrfTokenSeedTrait::drupalLogout function core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php
SynchronizeCsrfTokenSeedTrait::rebuildContainer function core/modules/ckeditor5/tests/src/Traits/SynchronizeCsrfTokenSeedTrait.php
SystemTokensHooks class core/modules/system/src/Hook/SystemTokensHooks.php Hook implementations for system.
SystemTokensHooks.php file core/modules/system/src/Hook/SystemTokensHooks.php
SystemTokensHooks::tokenInfo function core/modules/system/src/Hook/SystemTokensHooks.php Implements hook_token_info().
SystemTokensHooks::tokens function core/modules/system/src/Hook/SystemTokensHooks.php Implements hook_tokens().
TaxonomyFieldAllTermsTest::testViewsHandlerAllTermsWithTokens function core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php Tests token replacement in the "all terms" field handler.
TaxonomyIndexTid::addSelfTokens function core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php Add any special tokens this field might use for itself.
TaxonomyIndexTid::documentSelfTokens function core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php Document any special tokens this field might use for itself.
TaxonomyTokensHooks class core/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php Hook implementations for taxonomy.
TaxonomyTokensHooks.php file core/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php
TaxonomyTokensHooks::tokenInfo function core/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php Implements hook_token_info().
TaxonomyTokensHooks::tokens function core/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php Implements hook_tokens().
TestController::$token property core/modules/system/tests/modules/token_test/src/Controller/TestController.php The token replacement system.
TestController::$tokenGenerator property core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php Token generator service.
TestController::getCsrfToken function core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php Just return generated CSRF token for concurrent requests.
TestController::tokenReplace function core/modules/system/tests/modules/token_test/src/Controller/TestController.php Provides a token replacement with a node as well as the current user.
TestController::tokenReplaceWithoutPassedBubbleableMetadata function core/modules/system/tests/modules/token_test/src/Controller/TestController.php Provides a token replacement with a node as well as the current user.
TestPluginBase::viewsTokenReplace function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Replaces Views' tokens in a given string.
TextSummaryNodeFieldsTokenTest class core/modules/text/tests/src/Functional/TextSummaryNodeFieldsTokenTest.php Tests replacement of Views tokens supplied by the Node module.
TextSummaryNodeFieldsTokenTest.php file core/modules/text/tests/src/Functional/TextSummaryNodeFieldsTokenTest.php
TextSummaryNodeFieldsTokenTest::$defaultTheme property core/modules/text/tests/src/Functional/TextSummaryNodeFieldsTokenTest.php The theme to install as the default for testing.
TextSummaryNodeFieldsTokenTest::$testViews property core/modules/text/tests/src/Functional/TextSummaryNodeFieldsTokenTest.php Views used by this test.
TextSummaryNodeFieldsTokenTest::testViewsTokenReplacement function core/modules/text/tests/src/Functional/TextSummaryNodeFieldsTokenTest.php Tests token replacement for Views tokens supplied by the Node module.
TextWithSummaryTokenReplaceTest class core/modules/node/tests/src/Kernel/TextWithSummaryTokenReplaceTest.php Tests node token replacement for text_with_summary.
TextWithSummaryTokenReplaceTest.php file core/modules/node/tests/src/Kernel/TextWithSummaryTokenReplaceTest.php
TextWithSummaryTokenReplaceTest::$modules property core/modules/node/tests/src/Kernel/TextWithSummaryTokenReplaceTest.php Modules to install.
TextWithSummaryTokenReplaceTest::setUp function core/modules/node/tests/src/Kernel/TextWithSummaryTokenReplaceTest.php
TextWithSummaryTokenReplaceTest::testNodeTokenReplacement function core/modules/node/tests/src/Kernel/TextWithSummaryTokenReplaceTest.php Creates a node, then tests the tokens generated from it.
ThemeTokenTest class core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php Tests the generation of 'theme_token' key in Drupal settings.
ThemeTokenTest.php file core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php

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