Search for tokens

  1. Search 7.x for tokens
  2. Search 9.5.x for tokens
  3. Search 8.9.x for tokens
  4. Search 10.3.x for tokens
  5. Search 11.x for tokens
  6. Other projects
Title Object type File name Summary
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 Tests convert tokens to keys.
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Tests optimize tokens.
CacheContextsManagerTest::validateTokensProvider function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Provides a list of cache context token arrays.
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().
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.
ConvertTokens::__construct function core/modules/user/src/Plugin/migrate/process/ConvertTokens.php Constructs a \Drupal\Component\Plugin\PluginBase object.
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.
DisplayPluginBase::getArgumentsTokens function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Returns to tokens for arguments.
DisplayPluginBase::recursiveReplaceTokens function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Replace the query parameters recursively, both key and value.
DisplayPluginInterface::getArgumentsTokens function core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php Returns to tokens for arguments.
EntityField::addSelfTokens function core/modules/views/src/Plugin/views/field/EntityField.php Add any special tokens this field might use for itself.
EntityField::documentSelfTokens function core/modules/views/src/Plugin/views/field/EntityField.php Document any special tokens this field might use for itself.
EntityTest::providerTestTokens function core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php Data provider for testing different types of tokens.
FieldCustomTest::testFieldCustomTokens function core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php Ensure that custom fields can use tokens.
FieldHandlerInterface::getRenderTokens function core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php Gets the 'render' tokens to use for advanced rendering.
FieldKernelTest::testArgumentTokens function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Tests the arguments tokens on field level.
FieldKernelTest::testFieldTokens function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Tests the field tokens, row level and field level.
FieldKernelTest::testRewriteHtmlWithTokens function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Tests rewriting of the output with HTML.
FieldKernelTest::testRewriteHtmlWithTokensAndAggregation function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Tests rewriting of the output with HTML and aggregation.
FieldPluginBase::$last_tokens property core/modules/views/src/Plugin/views/field/FieldPluginBase.php The last rendered tokens.
FieldPluginBase::addSelfTokens function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Add any special tokens this field might use for itself.
FieldPluginBase::documentSelfTokens function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Document any special tokens this field might use for itself.
FieldPluginBase::getRenderTokens function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Gets the 'render' tokens to use for advanced rendering.
FieldPluginBaseTest::providerTestGetRenderTokensWithQuery function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testGetRenderTokensWithQuery().
FieldPluginBaseTest::providerTestRenderAsExternalLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderAsExternalLinkWithPathAndTokens().
FieldPluginBaseTest::providerTestRenderAsLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Data provider for ::testRenderAsLinkWithPathAndTokens().
FieldPluginBaseTest::testElementClassesWithTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Ensures proper token replacement when generating CSS classes.
FieldPluginBaseTest::testGetRenderTokensWithArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests get render tokens with arguments.
FieldPluginBaseTest::testGetRenderTokensWithoutArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests get render tokens without arguments.
FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests get render tokens without fields and arguments.
FieldPluginBaseTest::testGetRenderTokensWithQuery function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests get render tokens with query.
FieldPluginBaseTest::testRenderAsExternalLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Tests rendering of a link with a path and options.

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