Search for token

  1. Search 7.x for token
  2. Search 8.9.x for token
  3. Search 10.3.x for token
  4. Search 11.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
MessageAction::$token property core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php The token service.
MetadataBag::clearCsrfTokenSeed function core/lib/Drupal/Core/Session/MetadataBag.php Clear the CSRF token seed.
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.
MetadataBagTest::testDeprecatedClearCsrfTokenSeed function core/tests/Drupal/Tests/Core/Session/MetadataBagTest.php @covers ::clearCsrfTokenSeed
@group legacy
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 enable.
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.
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.
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
SearchTokenizerTest::$modules property core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Modules to enable.
SearchTokenizerTest::code2utf function core/modules/search/tests/src/Kernel/SearchTokenizerTest.php Like PHP chr() function, but for unicode characters.
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.
statistics.tokens.inc file core/modules/statistics/statistics.tokens.inc Builds placeholder replacement tokens for node visitor statistics.
StatisticsTokenReplaceTest class core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php Tests statistics token replacement.
StatisticsTokenReplaceTest.php file core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
StatisticsTokenReplaceTest::$defaultTheme property core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php The theme to install as the default for testing.
StatisticsTokenReplaceTest::testStatisticsTokenReplacement function core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php Creates a node, then tests the statistics tokens generated from it.
statistics_tokens function core/modules/statistics/statistics.tokens.inc Implements hook_tokens().
statistics_token_info function core/modules/statistics/statistics.tokens.inc Implements hook_token_info().
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.

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