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
TokenReplaceTest::$vocabulary property core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php The vocabulary used for creating terms.
TokenReplaceTest::setUp function core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php
TokenReplaceTest::testTaxonomyTokenReplacement function core/modules/taxonomy/tests/src/Kernel/TokenReplaceTest.php Creates some terms and a node, then tests the tokens generated from them.
TokenReplaceTest::testTokenReplacement function core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests core token replacements generated from a view.
TokenReplaceTest::testTokenReplacementNoPath function core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests path token replacements generated from a view without a path.
TokenReplaceTest::testTokenReplacementNoResults function core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests core token replacements generated from a view without results.
TokenReplaceTest::testTokenReplacementWithMiniPager function core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests core token replacements generated from a view.
TokenReplaceTest::testTokenReplacementWithSpecificNumberOfItems function core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests token replacement of [view:total-rows] when pager is disabled.
TokenReplaceWebTest class core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php Tests the token system integration.
TokenReplaceWebTest.php file core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php
TokenReplaceWebTest::$defaultTheme property core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php The theme to install as the default for testing.
TokenReplaceWebTest::$modules property core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php Modules to install.
TokenReplaceWebTest::testTokens function core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php Tests a token replacement on an actual website.
TokenTest class core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php @coversDefaultClass \Drupal\Core\Render\Element\Token
@group Render
TokenTest class core/tests/Drupal/Tests/Core/Utility/TokenTest.php @coversDefaultClass \Drupal\Core\Utility\Token
@group Utility
TokenTest.php file core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php
TokenTest.php file core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TokenTest::$cache property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The cache used for testing.
TokenTest::$cacheContextManager property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The cache contexts manager.
TokenTest::$cacheTagsInvalidator property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The cache tags invalidator.
TokenTest::$language property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The language interface used for testing.
TokenTest::$languageManager property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The language manager used for testing.
TokenTest::$moduleHandler property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The module handler service used for testing.
TokenTest::$renderer property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The renderer.
TokenTest::$token property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The token service under test.
TokenTest::providerTestReplaceEscaping function core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TokenTest::providerTestValueCallback function core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php Data provider for testValueCallback().
TokenTest::setUp function core/tests/Drupal/Tests/Core/Utility/TokenTest.php
TokenTest::setupSiteTokens function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Sets up the token library to return site tokens.
TokenTest::testGetInfo function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::getInfo
TokenTest::testReplaceEscaping function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
@dataProvider providerTestReplaceEscaping
TokenTest::testReplacePlain function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replacePlain
TokenTest::testReplaceWithBubbleableMetadataObject function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
@covers ::replace
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TokenTest::testResetInfo function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::resetInfo
TokenTest::testScan function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Scans dummy text, then tests the output.
TokenTest::testScanDeprecation function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Tests passing a non-string value to Token::scan().
TokenTest::testValueCallback function core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php @covers ::valueCallback
token_test.info.yml file core/modules/system/tests/modules/token_test/token_test.info.yml core/modules/system/tests/modules/token_test/token_test.info.yml
token_test.routing.yml file core/modules/system/tests/modules/token_test/token_test.routing.yml core/modules/system/tests/modules/token_test/token_test.routing.yml
TwigExtension::getTokenParsers function core/lib/Drupal/Core/Template/TwigExtension.php
TwigTransTokenParser class core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.
TwigTransTokenParser.php file core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
TwigTransTokenParser::decideForEnd function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect the end of a 'trans' tag.
TwigTransTokenParser::decideForFork function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect a 'plural' switch or the end of a 'trans' tag.
TwigTransTokenParser::getTag function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::parse function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
UncacheableFieldHandlerTrait::getFieldTokenPlaceholder function core/modules/views/src/Plugin/views/field/UncacheableFieldHandlerTrait.php

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