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 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
LinkViewsTokensTest::$fieldName property core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php The field name used for the link field.
LinkViewsTokensTest::$modules property core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php Modules to install.
LinkViewsTokensTest::$testViews property core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php Views used by this test.
LinkViewsTokensTest::setUp function core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php Sets up the test.
LinkViewsTokensTest::testLinkViewsTokens function core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php
locale-test-tokenized.html.twig file core/modules/locale/tests/modules/locale_test/templates/locale-test-tokenized.html.twig {{ content }}
LocaleStringIsSafeTest::testLocalizedTokenizedString function core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php Tests if a translated and tokenized string is properly escaped by Twig.
LocaleTestHooks::tokenInfo function core/modules/locale/tests/modules/locale_test/src/Hook/LocaleTestHooks.php Implements hook_token_info().
LocaleTestHooks::tokens function core/modules/locale/tests/modules/locale_test/src/Hook/LocaleTestHooks.php Implements hook_tokens().
locale_test_tokens function core/modules/locale/tests/modules/locale_test/locale_test.module Implements hook_tokens().
locale_test_token_info function core/modules/locale/tests/modules/locale_test/locale_test.module Implements hook_token_info().
MessageAction::$token property core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php The token service.
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.
node.tokens.inc file core/modules/node/node.tokens.inc Builds placeholder replacement tokens for node-related data.
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 The theme to install as the default for testing.
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 Modules to install.
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 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().
node_tokens function core/modules/node/node.tokens.inc Implements hook_tokens().
node_token_info function core/modules/node/node.tokens.inc Implements hook_token_info().
OEmbed::$token property core/modules/media/src/Plugin/media/Source/OEmbed.php The token replacement service.
PluginBase::getAvailableGlobalTokens function core/modules/views/src/Plugin/views/PluginBase.php Returns an array of available token replacements.
PluginBase::globalTokenForm function core/modules/views/src/Plugin/views/PluginBase.php Adds elements for available core tokens to a form.
PluginBase::globalTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php Returns a string with any core tokens replaced.
PluginBase::viewsTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php Replaces Views' tokens in a given string.
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.
RouteProcessorCsrf::$csrfToken property core/lib/Drupal/Core/Access/RouteProcessorCsrf.php The CSRF token generator.
RouteProcessorCsrf::renderPlaceholderCsrfToken function core/lib/Drupal/Core/Access/RouteProcessorCsrf.php #lazy_builder callback; gets a CSRF token for the given path.
RouteProcessorCsrfTest::$csrfToken property core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php The mock CSRF token generator.
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

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