Search for token

  1. Search 7.x for token
  2. Search 8.9.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
AjaxBasePageNegotiatorTest::$tokenGenerator property core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php The CSRF token generator.
AjaxBasePageNegotiatorTest::testDetermineActiveThemeInvalidToken function core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php @covers ::determineActiveTheme
AjaxBasePageNegotiatorTest::testDetermineActiveThemeValidToken function core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php @covers ::determineActiveTheme
AreaTest::testRenderAreaToken function core/modules/views/tests/src/Functional/Handler/AreaTest.php Tests global tokens.
ArgumentPluginBase::getTokenHelp function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Provide token help information for the argument.
BatchStorage::$csrfToken property core/lib/Drupal/Core/Batch/BatchStorage.php The CSRF token generator.
BigPipeTest::setCsrfTokenSeedInTestEnvironment function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Ensures CSRF tokens can be generated for the current user's session.
CacheContextsManager::$validContextTokens property core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php The set of valid context tokens.
CacheContextsManager::assertValidTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Asserts the context tokens are valid.
CacheContextsManager::convertTokensToKeys function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Converts cache context tokens to cache keys.
CacheContextsManager::optimizeTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Optimizes cache context tokens (the minimal representative subset).
CacheContextsManager::parseTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Parses cache context tokens into context IDs and optional parameters.
CacheContextsManager::validateTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Validates an array of cache context tokens.
CacheContextsManagerTest::providerTestOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of context token sets.
CacheContextsManagerTest::testConvertTokensToKeys function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::convertTokensToKeys
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::optimizeTokens
CacheContextsManagerTest::validateTokensProvider function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of cache context token arrays.
comment.tokens.inc file core/modules/comment/comment.tokens.inc Builds placeholder replacement tokens for comment-related data.
CommentTokenReplaceTest class core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Tests comment token replacement.
CommentTokenReplaceTest.php file core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
CommentTokenReplaceTest::$defaultTheme property core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php The theme to install as the default for testing.
CommentTokenReplaceTest::$modules property core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Modules to install.
CommentTokenReplaceTest::testCommentTokenReplacement function core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Creates a comment, then tests the tokens generated from it.
comment_tokens function core/modules/comment/comment.tokens.inc Implements hook_tokens().
comment_token_info function core/modules/comment/comment.tokens.inc Implements hook_token_info().
ContextualDynamicContextTest::createContextualIdToken function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Creates a contextual ID token.
ContextualDynamicContextTest::testTokenProtection function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Tests the contextual placeholder content is protected by a token.
ConvertTokens class core/modules/user/src/Plugin/migrate/process/ConvertTokens.php Plugin to replace !tokens with [tokens].
ConvertTokens.php file core/modules/user/src/Plugin/migrate/process/ConvertTokens.php
ConvertTokens::transform function core/modules/user/src/Plugin/migrate/process/ConvertTokens.php Performs the associated process.
ConvertTokensTest class core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php Tests the ConvertTokens plugin.
ConvertTokensTest.php file core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php
ConvertTokensTest::setUp function core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php
ConvertTokensTest::testConvertTokens function core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php Tests conversion of user tokens.
ConvertTokensTest::testConvertTokensNull function core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php Tests conversion of user tokens with a NULL value.
CookieResourceTestTrait::$csrfToken property core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php The CSRF token.
CookieResourceTestTrait::$logoutToken property core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php The logout token.
CsrfAccessCheck::$csrfToken property core/lib/Drupal/Core/Access/CsrfAccessCheck.php The CSRF token generator.
CsrfAccessCheckTest::$csrfToken property core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php The mock CSRF token generator.
CsrfAccessCheckTest::testAccessTokenPass function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php Tests the access() method with a valid token.
CsrfAccessCheckTest::testCsrfTokenInvalid function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @covers ::access
CsrfAccessCheckTest::testCsrfTokenMissing function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @covers ::access
CsrfRequestHeaderAccessCheck::$csrfToken property core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php The token generator.
CsrfRequestHeaderAccessCheck::TOKEN_KEY constant core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php A string key that will used to designate the token used by this class.
CsrfTokenController class core/modules/system/src/Controller/CsrfTokenController.php Returns responses for CSRF token routes.
CsrfTokenController.php file core/modules/system/src/Controller/CsrfTokenController.php
CsrfTokenController::$tokenGenerator property core/modules/system/src/Controller/CsrfTokenController.php The CSRF token generator.
CsrfTokenController::create function core/modules/system/src/Controller/CsrfTokenController.php Instantiates a new instance of this class.
CsrfTokenController::csrfToken function core/modules/system/src/Controller/CsrfTokenController.php Returns a CSRF protecting session token.
CsrfTokenController::__construct function core/modules/system/src/Controller/CsrfTokenController.php Constructs a new CsrfTokenController object.

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