Search for token

  1. Search 7.x for token
  2. Search 9.5.x for token
  3. Search 10.3.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
TokenTest::$renderer property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The renderer.
TokenTest::$token property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The token service under test.
TokenTest::providerTestReplaceEscaping function core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TokenTest::providerTestValueCallback function core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php Data provider for testValueCallback().
TokenTest::setUp function core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TokenTest::testGetInfo function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::getInfo
TokenTest::testReplaceEscaping function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
@dataProvider providerTestReplaceEscaping
TokenTest::testReplaceWithBubbleableMetadataObject function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
@covers ::replace
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TokenTest::testResetInfo function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::resetInfo
TokenTest::testValueCallback function core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php @covers ::valueCallback
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.
UserAuthenticationController::$csrfToken property core/modules/user/src/Controller/UserAuthenticationController.php The CSRF token generator.
UserTokenReplaceTest class core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Generates text using placeholders for dummy content to check user token
replacement.
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 enable.
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.
UserUpdateEmailToken class core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php Tests user email token upgrade path.
UserUpdateEmailToken.php file core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php
UserUpdateEmailToken::setDatabaseDumpFiles function core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php Set database dump files to be used.
UserUpdateEmailToken::testEmailToken function core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php Tests that email token in status_blocked of user.mail is updated.
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_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.

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