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 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
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 The theme to install as the default for testing.
UserTokenReplaceTest::$modules property core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Modules to install.
UserTokenReplaceTest::$useOneTimeLoginLinks property core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Use one-time login links instead of submitting the login form.
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.
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.
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.