Search for tokens

  1. Search 7.x for tokens
  2. Search 8.9.x for tokens
  3. Search 10.3.x for tokens
  4. Search 11.x for tokens
  5. Search main for tokens
  6. Other projects
Title Object type File name Summary
LinkViewsTokensTest::$defaultTheme property core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php
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 enable.
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
LinkViewsTokensTest::testLinkViewsTokens function core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php
locale_test_tokens function core/modules/locale/tests/modules/locale_test/locale_test.module Implements hook_tokens().
MetadataBag::clearCsrfTokenSeed function core/lib/Drupal/Core/Session/MetadataBag.php Clear the CSRF token seed.
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[[api-linebreak]]
@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
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.
node_tokens function core/modules/node/node.tokens.inc Implements hook_tokens().
PluginBase::getAvailableGlobalTokens function core/modules/views/src/Plugin/views/PluginBase.php
PluginBaseTest::testViewsTokenReplaceWithTwigTokens function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests viewsTokenReplace without any twig tokens.
Roles::addSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php
Roles::documentSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php
statistics.tokens.inc file core/modules/statistics/statistics.tokens.inc Builds placeholder replacement tokens for node visitor statistics.
statistics_tokens function core/modules/statistics/statistics.tokens.inc Implements hook_tokens().
StylePluginBase::$rowTokens property core/modules/views/src/Plugin/views/style/StylePluginBase.php Store all available tokens row rows.
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
system.tokens.inc file core/modules/system/system.tokens.inc Builds placeholder replacement tokens system-wide data.
system_tokens function core/modules/system/system.tokens.inc Implements hook_tokens().
taxonomy.tokens.inc file core/modules/taxonomy/taxonomy.tokens.inc Builds placeholder replacement tokens for taxonomy terms and vocabularies.
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
TaxonomyIndexTid::documentSelfTokens function core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
taxonomy_tokens function core/modules/taxonomy/taxonomy.tokens.inc Implements hook_tokens().
TokenReplaceKernelTestBase::$tokenService property core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php Token service.
TokenReplaceWebTest::testTokens function core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php Tests a token replacement on an actual website.
TokenScanTest class core/modules/system/tests/src/Functional/System/TokenScanTest.php Scan token-like patterns in a dummy text to check token scanning.
TokenScanTest.php file core/modules/system/tests/src/Functional/System/TokenScanTest.php
TokenScanTest::$defaultTheme property core/modules/system/tests/src/Functional/System/TokenScanTest.php
TokenScanTest::testTokenScan function core/modules/system/tests/src/Functional/System/TokenScanTest.php Scans dummy text, then tests the output.
TokenTest::setupSiteTokens function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Sets up the token library to return site tokens.
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]
@covers ::replace[[api-linebreak]]
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]
user.tokens.inc file core/modules/user/user.tokens.inc Builds placeholder replacement tokens for user-related data.
user_mail_tokens function core/modules/user/user.module Token callback to add unsafe tokens for user mails.
user_tokens function core/modules/user/user.tokens.inc Implements hook_tokens().

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