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 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
EntityTest::providerTestTokens function core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php Data provider for testing different types of tokens.
EntityTest::testRenderWithIdAndToken function core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php @covers ::render
@covers ::defineOptions
@covers ::init
ExcludedFieldTokenTest class core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php Tests the display of an excluded field that is used as a token.
ExcludedFieldTokenTest.php file core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php
ExcludedFieldTokenTest::$defaultTheme property core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php The theme to install as the default for testing.
ExcludedFieldTokenTest::$modules property core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php The modules that need to be installed for this test.
ExcludedFieldTokenTest::$testViews property core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php The views that are used by this test.
ExcludedFieldTokenTest::$view property core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php
ExcludedFieldTokenTest::setUp function core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php Sets up the test.
ExcludedFieldTokenTest::testExcludedTitleTokenDisplay function core/modules/rest/tests/src/Functional/Views/ExcludedFieldTokenTest.php Tests the display of an excluded title field when used as a token.
FieldCounterTest::testExcludedTitleTokenDisplay function core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php Tests the display of an excluded title field when used as a token.
FieldCustomTest::testFieldCustomTokens function core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php Ensure that custom fields can use tokens.
FieldFieldTest::testRevisionTokenRender function core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php Tests the token replacement for revision fields.
FieldHandlerInterface::getRenderTokens function core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php Gets the 'render' tokens to use for advanced rendering.
FieldHandlerInterface::tokenizeValue function core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php Replaces a value with tokens from the last field.
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
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::getFieldTokenPlaceholder function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Returns a token placeholder for the current field.
FieldPluginBase::getRenderTokens function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Gets the 'render' tokens to use for advanced rendering.
FieldPluginBase::getTokenValuesRecursive function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Recursive function to add replacements for nested query string parameters.
FieldPluginBase::tokenizeValue function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Replaces a value with tokens from the last field.
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
FieldPluginBaseTest::testGetRenderTokensWithoutArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @covers ::getRenderTokens
FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @covers ::getRenderTokens
FieldPluginBaseTest::testGetRenderTokensWithQuery function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @dataProvider providerTestGetRenderTokensWithQuery
@covers ::getRenderTokens
@covers ::getTokenValuesRecursive
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.
FieldSelfTokensTest::setUp function core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php This method is called before each test.
FieldSelfTokensTest::testSelfTokenEscaping function core/modules/views/tests/src/Kernel/Handler/FieldSelfTokensTest.php
FieldTest::addSelfTokens function core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldTest.php Add any special tokens this field might use for itself.
FileTokenReplaceTest class core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Tests file token replacement.
FileTokenReplaceTest.php file core/modules/file/tests/src/Functional/FileTokenReplaceTest.php
FileTokenReplaceTest::$defaultTheme property core/modules/file/tests/src/Functional/FileTokenReplaceTest.php The theme to install as the default for testing.
FileTokenReplaceTest::testFileTokenReplacement function core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Creates a file, then tests the tokens generated from it.
file_tokens function core/modules/file/file.module Implements hook_tokens().
file_token_info function core/modules/file/file.module Implements hook_token_info().
FormBuilder::$csrfToken property core/lib/Drupal/Core/Form/FormBuilder.php The CSRF token generator to validate the form token.

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