Search for token

  1. Search 7.x for token
  2. Search 9.5.x for token
  3. Search 10.3.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
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.
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::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::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::testRenderAsExternalLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Test rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndTokens function core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php Test 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 Add any special tokens this field might use for itself.
FileTokenReplaceTest class core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Generates text using placeholders for dummy content to check 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.
FileUploadResource::$token property core/modules/file/src/Plugin/rest/resource/FileUploadResource.php The token replacement instance.
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.
FormBuilder::renderFormTokenPlaceholder function core/lib/Drupal/Core/Form/FormBuilder.php Renders the form CSRF token. It's a #lazy_builder callback.
FormBuilder::setInvalidTokenError function core/lib/Drupal/Core/Form/FormBuilder.php Sets a form_token error on the given form state.
FormBuilderTest::providerTestFormTokenCacheability function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Data provider for testFormTokenCacheability.
FormBuilderTest::providerTestInvalidToken function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
FormBuilderTest::testFormTokenCacheability function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php @covers ::prepareForm
FormBuilderTest::testInvalidToken function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php @covers ::doBuildForm
FormCache::$csrfToken property core/lib/Drupal/Core/Form/FormCache.php The CSRF token generator to validate the form token.
FormCacheTest::$csrfToken property core/tests/Drupal/Tests/Core/Form/FormCacheTest.php The CSRF token generator.
FormCacheTest::testCacheToken function core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php Tests the form cache with a logged-in user.
FormCacheTest::testGetCacheInvalidToken function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::getCache
FormCacheTest::testGetCacheValidToken function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::getCache
FormCacheTest::testNoCacheToken function core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php Tests the form cache without a logged-in user.
FormState::$invalidToken property core/lib/Drupal/Core/Form/FormState.php If set to TRUE the form will skip calling form element value callbacks,
except for a select list of callbacks provided by Drupal core that are
known to be safe.
FormState::hasInvalidToken function core/lib/Drupal/Core/Form/FormState.php Determines if the form has an invalid token.

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