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
token_test.info.yml file core/modules/system/tests/modules/token_test/token_test.info.yml core/modules/system/tests/modules/token_test/token_test.info.yml
token_test.routing.yml file core/modules/system/tests/modules/token_test/token_test.routing.yml core/modules/system/tests/modules/token_test/token_test.routing.yml
TwigExtension::getTokenParsers function core/lib/Drupal/Core/Template/TwigExtension.php
TwigTransTokenParser class core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.
TwigTransTokenParser.php file core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
TwigTransTokenParser::decideForEnd function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect the end of a 'trans' tag.
TwigTransTokenParser::decideForFork function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect a 'plural' switch or the end of a 'trans' tag.
TwigTransTokenParser::getTag function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::parse function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
UncacheableFieldHandlerTrait::getFieldTokenPlaceholder function core/modules/views/src/Plugin/views/field/UncacheableFieldHandlerTrait.php
user.tokens.inc file core/modules/user/user.tokens.inc Builds placeholder replacement tokens for user-related data.
UserAccountFormPasswordResetTest::testPasswordResetToken function core/modules/user/tests/src/Kernel/UserAccountFormPasswordResetTest.php Tests the reset token used only from query string.
UserAuthenticationController::$csrfToken property core/modules/user/src/Controller/UserAuthenticationController.php The CSRF token generator.
UserTokenReplaceTest class core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Tests the replacement of user tokens.
UserTokenReplaceTest.php file core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserTokenReplaceTest::$defaultTheme property core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserTokenReplaceTest::$modules property core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserTokenReplaceTest::$useOneTimeLoginLinks property core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserTokenReplaceTest::setUp function core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserTokenReplaceTest::testUserTokenReplacement function core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Creates a user, then tests the tokens generated from it.
UserTokensHooks class core/modules/user/src/Hook/UserTokensHooks.php Hook implementations for user.
UserTokensHooks.php file core/modules/user/src/Hook/UserTokensHooks.php
UserTokensHooks::tokenInfo function core/modules/user/src/Hook/UserTokensHooks.php Implements hook_token_info().
UserTokensHooks::tokens function core/modules/user/src/Hook/UserTokensHooks.php Implements hook_tokens().
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().
user_token_info function core/modules/user/user.tokens.inc Implements hook_token_info().
ValidationTest::testDisabledToken function core/modules/system/tests/src/Functional/Form/ValidationTest.php Tests that a form with a disabled CSRF token can be validated.
views.tokens.inc file core/modules/views/views.tokens.inc Token integration for the views module.
views.view.test_excluded_field_token_display.yml file core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_excluded_field_token_display.yml core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_excluded_field_token_display.yml
views.view.test_field_argument_tokens.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_argument_tokens.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_argument_tokens.yml
views.view.test_field_self_tokens.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_self_tokens.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_self_tokens.yml
views.view.test_field_tokens.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml
views.view.test_invalid_tokens.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_invalid_tokens.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_invalid_tokens.yml
views.view.test_link_tokens.yml file core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml
views.view.test_node_tokens.yml file core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_tokens.yml core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_tokens.yml
views.view.test_tokens.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml
views.view.test_token_view.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_token_view.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_token_view.yml
ViewsBlockTest::testBuildWithTitleToken function core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php Tests that ViewsBlock::build() produces the right output with title tokens.
ViewsPluginInterface::getAvailableGlobalTokens function core/modules/views/src/Plugin/views/ViewsPluginInterface.php Returns an array of available token replacements.
ViewsPluginInterface::globalTokenForm function core/modules/views/src/Plugin/views/ViewsPluginInterface.php Adds elements for available core tokens to a form.
ViewsPluginInterface::globalTokenReplace function core/modules/views/src/Plugin/views/ViewsPluginInterface.php Returns a string with any core tokens replaced.
ViewsTokensHooks class core/modules/views/src/Hook/ViewsTokensHooks.php Hook implementations for views.
ViewsTokensHooks.php file core/modules/views/src/Hook/ViewsTokensHooks.php
ViewsTokensHooks::tokenInfo function core/modules/views/src/Hook/ViewsTokensHooks.php Implements hook_token_info().
ViewsTokensHooks::tokens function core/modules/views/src/Hook/ViewsTokensHooks.php Implements hook_tokens().
views_tokens function core/modules/views/views.tokens.inc Implements hook_tokens().
views_token_info function core/modules/views/views.tokens.inc Implements hook_token_info().

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