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. Search 11.x for token
  6. 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
MetadataBag::CSRF_TOKEN_SEED constant core/lib/Drupal/Core/Session/MetadataBag.php The key used to store the CSRF token seed in the session.
MetadataBag::getCsrfTokenSeed function core/lib/Drupal/Core/Session/MetadataBag.php Get the CSRF token seed.
MetadataBag::setCsrfTokenSeed function core/lib/Drupal/Core/Session/MetadataBag.php Set the CSRF token seed.
NodeFieldTokensTest class core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php Tests replacement of Views tokens supplied by the Node module.
NodeFieldTokensTest.php file core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php
NodeFieldTokensTest::$defaultTheme property core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php
NodeFieldTokensTest::$testViews property core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php Views used by this test.
NodeFieldTokensTest::testViewsTokenReplacement function core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php Tests token replacement for Views tokens supplied by the Node module.
NodeTokenReplaceTest class core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php Tests node token replacement.
NodeTokenReplaceTest.php file core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
NodeTokenReplaceTest::$modules property core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
NodeTokenReplaceTest::setUp function core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
NodeTokenReplaceTest::testNodeTokenReplacement function core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php Creates a node, then tests the tokens generated from it.
NodeTokensHooks class core/modules/node/src/Hook/NodeTokensHooks.php Token hook implementations for node.
NodeTokensHooks.php file core/modules/node/src/Hook/NodeTokensHooks.php
NodeTokensHooks::tokenInfo function core/modules/node/src/Hook/NodeTokensHooks.php Implements hook_token_info().
NodeTokensHooks::tokens function core/modules/node/src/Hook/NodeTokensHooks.php Implements hook_tokens().
NumericArgumentTitleTest::testTitleWithBreakPhraseAndTokenValue function core/modules/views/tests/src/Unit/Plugin/argument/NumericArgumentTitleTest.php Tests title() method with break_phrase enabled token value.
OEmbed::$token property core/modules/media/src/Plugin/media/Source/OEmbed.php The token replacement service.
OneTimeAuthentication::tokens function core/modules/user/src/OneTimeAuthentication.php Token callback to add unsafe tokens for user notifications.
plugin.manager.design_token service core/core.services.yml Drupal\Core\Theme\DesignToken\DesignTokenPluginManager
plugin.manager.design_token_value service core/core.services.yml Drupal\Core\Theme\DesignToken\DesignTokenValuePluginManager
PluginBase::getAvailableGlobalTokens function core/modules/views/src/Plugin/views/PluginBase.php
PluginBase::globalTokenForm function core/modules/views/src/Plugin/views/PluginBase.php
PluginBase::globalTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php
PluginBase::viewsTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php Replaces Views' tokens in a given string.
PluginBaseTest::providerTestGetAvailableGlobalTokens function core/modules/views/tests/src/Unit/PluginBaseTest.php Data provider for testGetAvailableGlobalTokens().
PluginBaseTest::testGetAvailableGlobalTokens function core/modules/views/tests/src/Unit/PluginBaseTest.php Tests the getAvailableGlobalTokens method.
PluginBaseTest::testViewsTokenReplace function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests that the token replacement in views works correctly.
PluginBaseTest::testViewsTokenReplaceWithDots function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests that the token replacement in views works correctly with dots.
PluginBaseTest::testViewsTokenReplaceWithTwigTokens function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests viewsTokenReplace without any twig tokens.
PoHeader::tokenizeFormula function core/lib/Drupal/Component/Gettext/PoHeader.php Tokenize the formula.
QueryParameterWorkspaceNegotiator::getQueryToken function core/modules/workspaces/src/Negotiator/QueryParameterWorkspaceNegotiator.php Calculates a token based on a workspace ID.
rebuild_token_calculator.sh file core/scripts/rebuild_token_calculator.sh Command line token calculator for rebuild.php.
Roles::addSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php Add any special tokens this field might use for itself.
Roles::documentSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php Document any special tokens this field might use for itself.
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.
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.

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