Search for tokens

  1. Search 7.x for tokens
  2. Search 9.5.x for tokens
  3. Search 8.9.x for tokens
  4. Search 11.x for tokens
  5. Search main for tokens
  6. Other projects
Title Object type File name Summary
FieldSelfTokensTest::setUp function core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php This method is called before each test.
FieldSelfTokensTest::testSelfTokenEscaping function core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php
FieldTest::addSelfTokens function core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldTest.php Add any special tokens this field might use for itself.
file_tokens function core/modules/file/file.module Implements hook_tokens().
hook_tokens function core/lib/Drupal/Core/Utility/token.api.php Provide replacement values for placeholder tokens.
hook_tokens_alter function core/lib/Drupal/Core/Utility/token.api.php Alter replacement values for placeholder tokens.
Interpolator::findTokens function composer/Plugin/Scaffold/Interpolator.php Finds all of the tokens in the provided message.
LinkViewsTokensTest class core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php Tests the views integration for link tokens.
LinkViewsTokensTest.php file core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php
LinkViewsTokensTest::$defaultTheme property core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php The theme to install as the default for testing.
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_tokens function core/modules/locale/tests/modules/locale_test/locale_test.module Implements hook_tokens().
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.
node_tokens function core/modules/node/node.tokens.inc Implements hook_tokens().
PluginBase::getAvailableGlobalTokens function core/modules/views/src/Plugin/views/PluginBase.php Returns an array of available token replacements.
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 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.
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::$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::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 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.
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.
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]]

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