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.
token service core/core.services.yml Drupal\Core\Utility\Token

All search results

Title Object type File name Summary
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.
EntityTest::testRenderWithIdAndToken function core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php @covers ::render[[api-linebreak]]
@covers ::defineOptions[[api-linebreak]]
@covers ::init[[api-linebreak]]
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
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
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
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
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 @covers ::getRenderTokens[[api-linebreak]]
@covers ::getTokenValuesRecursive[[api-linebreak]]
@dataProvider providerTestGetRenderTokensWithQuery
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
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
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
FileTokenReplaceTest::testFileTokenReplacement function core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Creates a file, then tests the tokens generated from it.
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.