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 10.3.x for tokens
  5. Search main for tokens
  6. Other projects
Title Object type File name Summary
FieldSelfTokensTest class core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Tests token escaping in the EntityField handler.
FieldSelfTokensTest.php file core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php
FieldSelfTokensTest::$modules property core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Modules to install.
FieldSelfTokensTest::$testViews property core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Views used by this test.
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.
HistoryTokensHooks class core/modules/history/src/Hook/HistoryTokensHooks.php Token hook implementations for history.
HistoryTokensHooks.php file core/modules/history/src/Hook/HistoryTokensHooks.php
HistoryTokensHooks::tokenInfo function core/modules/history/src/Hook/HistoryTokensHooks.php Implements hook_token_info().
HistoryTokensHooks::tokens function core/modules/history/src/Hook/HistoryTokensHooks.php Implements hook_tokens().
HistoryTokensHooksTest class core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php Tests for HistoryTokensHooks.
HistoryTokensHooksTest.php file core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php
HistoryTokensHooksTest::testTokenInfoWithoutCommentModuleInstalled function core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php Tests that tokenInfo() handles missing comment module gracefully.
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 Tests the link views tokens.
LocaleTestHooks::tokens function core/modules/locale/tests/modules/locale_test/src/Hook/LocaleTestHooks.php 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.
module_test.tokens.inc file core/modules/system/tests/modules/module_test/module_test.tokens.inc
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.
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().
OneTimeAuthentication::tokens function core/modules/user/src/OneTimeAuthentication.php Token callback to add unsafe tokens for user notifications.
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.
SandboxDatabaseUpdatesValidator::tokensMatchFunctionNamePattern function core/modules/package_manager/src/Validator/SandboxDatabaseUpdatesValidator.php Determines if a set of tokens contain a function name matching a pattern.
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

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