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 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 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.
DisplayPluginBase::getArgumentsTokens function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Returns to tokens for arguments.
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 @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::testGetRenderTokensWithQuery function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @dataProvider providerTestGetRenderTokensWithQuery
@covers ::getRenderTokens[[api-linebreak]]
@covers ::getTokenValuesRecursive[[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.
FieldSelfTokensTest class core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Tests token escaping in the EntityField handler.
FieldSelfTokensTest.php file core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php
FieldSelfTokensTest::$modules property core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Modules to install.
FieldSelfTokensTest::$testViews property core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php Views used by this test.

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