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
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.
AreaTextTokenTest class core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php Tests the token in text area handler.
AreaTextTokenTest.php file core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php
AreaTextTokenTest::$modules property core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php
AreaTextTokenTest::$testViews property core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php Views used by this test.
AreaTextTokenTest::setUp function core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php
AreaTextTokenTest::testAreaTextToken function core/modules/views/tests/src/Kernel/Handler/AreaTextTokenTest.php Tests the token into text area plugin within header.
ArgumentPluginBase::getTokenHelp function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Provide token help information for the argument.
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
CommentTokenReplaceTest::$modules property core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
CommentTokenReplaceTest::testCommentTokenReplacement function core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Creates a comment, then tests the tokens generated from it.
CommentTokensHooks class core/modules/comment/src/Hook/CommentTokensHooks.php Hook implementations for comment.
CommentTokensHooks.php file core/modules/comment/src/Hook/CommentTokensHooks.php
CommentTokensHooks::tokenInfo function core/modules/comment/src/Hook/CommentTokensHooks.php Implements hook_token_info().
CommentTokensHooks::tokens function core/modules/comment/src/Hook/CommentTokensHooks.php Implements hook_tokens().
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

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