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
TokenizeAreaUITest::$modules property core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php Modules to enable.
TokenizeAreaUITest::testTokenUI function core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php Test that the right tokens are shown as available for replacement.
TokenReplaceKernelTest class core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php Generates text using placeholders for dummy content to check token
replacement.
TokenReplaceKernelTest.php file core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
TokenReplaceKernelTest::setUp function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
TokenReplaceKernelTest::testClear function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php Tests the clear parameter.
TokenReplaceKernelTest::testSystemDateTokenReplacement function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php Tests the generation of all system date tokens.
TokenReplaceKernelTest::testSystemSiteTokenReplacement function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php Tests the generation of all system site information tokens.
TokenReplaceKernelTest::testSystemTokenRecognition function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php Test whether token-replacement works in various contexts.
TokenReplaceKernelTestBase class core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php Base class for token replacement tests.
TokenReplaceKernelTestBase.php file core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php
TokenReplaceKernelTestBase::$interfaceLanguage property core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php The interface language.
TokenReplaceKernelTestBase::$modules property core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php Modules to enable.
TokenReplaceKernelTestBase::$tokenService property core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php Token service.
TokenReplaceKernelTestBase::setUp function core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php
TokenReplaceTest class core/modules/views/tests/src/Kernel/TokenReplaceTest.php Tests core view token replacement.
TokenReplaceTest class core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php Generates text using placeholders for dummy content to check taxonomy token
replacement.
TokenReplaceTest.php file core/modules/views/tests/src/Kernel/TokenReplaceTest.php
TokenReplaceTest.php file core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
TokenReplaceTest::$defaultTheme property core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php The theme to install as the default for testing.
TokenReplaceTest::$fieldName property core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php Name of the taxonomy term reference field.
TokenReplaceTest::$modules property core/modules/views/tests/src/Kernel/TokenReplaceTest.php Modules to enable.
TokenReplaceTest::$testViews property core/modules/views/tests/src/Kernel/TokenReplaceTest.php Views used by this test.
TokenReplaceTest::$vocabulary property core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php The vocabulary used for creating terms.
TokenReplaceTest::setUp function core/modules/views/tests/src/Kernel/TokenReplaceTest.php
TokenReplaceTest::setUp function core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
TokenReplaceTest::testTaxonomyTokenReplacement function core/modules/taxonomy/tests/src/Functional/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.
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 enable.
TokenReplaceWebTest::testTokens function core/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php Tests a token replacement on an actual website.
TokenScanTest class core/modules/system/tests/src/Functional/System/TokenScanTest.php Scan token-like patterns in a dummy text to check token scanning.
TokenScanTest.php file core/modules/system/tests/src/Functional/System/TokenScanTest.php
TokenScanTest::$defaultTheme property core/modules/system/tests/src/Functional/System/TokenScanTest.php The theme to install as the default for testing.
TokenScanTest::testTokenScan function core/modules/system/tests/src/Functional/System/TokenScanTest.php Scans dummy text, then tests the output.
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.

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