Search for tokens

  1. Search 7.x for tokens
  2. Search 8.9.x for tokens
  3. Search 10.3.x for tokens
  4. Search 11.x for tokens
  5. Search main 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 @covers ::convertTokensToKeys[[api-linebreak]]
CacheContextsManagerTest::testOptimizeTokens function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php @covers ::optimizeTokens[[api-linebreak]]
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.
comment_tokens function core/modules/comment/comment.tokens.inc 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
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
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
EntityField::documentSelfTokens function core/modules/views/src/Plugin/views/field/EntityField.php
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::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
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 @covers ::getRenderTokens[[api-linebreak]]
FieldPluginBaseTest::testGetRenderTokensWithoutArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @covers ::getRenderTokens[[api-linebreak]]
FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @covers ::getRenderTokens[[api-linebreak]]
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.
FieldTest::addSelfTokens function core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldTest.php
file_tokens function core/modules/file/file.module Implements hook_tokens().
hook_tokens function core/lib/Drupal/Core/Utility/token.api.php Provide replacement values for placeholder tokens.
hook_tokens_alter function core/lib/Drupal/Core/Utility/token.api.php Alter replacement values for placeholder tokens.
Interpolator::findTokens function composer/Plugin/Scaffold/Interpolator.php Finds all of the tokens in the provided message.
LinkViewsTokensTest class core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php Tests the views integration for link tokens.
LinkViewsTokensTest.php file core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php

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