26 calls to Drupal::token()
- CommentTokenReplaceTest::testCommentTokenReplacement in core/
modules/ comment/ tests/ src/ Functional/ CommentTokenReplaceTest.php - Creates a comment, then tests the tokens generated from it.
- CommentTokensHooks::tokens in core/
modules/ comment/ src/ Hook/ CommentTokensHooks.php - Implements hook_tokens().
- comment_tokens in core/
modules/ comment/ comment.tokens.inc - Implements hook_tokens().
- DrupalTest::testToken in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the token() method.
- FileHooks::tokens in core/
modules/ file/ src/ Hook/ FileHooks.php - Implements hook_tokens().
- FileTokenReplaceTest::testFileTokenReplacement in core/
modules/ file/ tests/ src/ Functional/ FileTokenReplaceTest.php - Creates a file, then tests the tokens generated from it.
- hook_tokens in core/
lib/ Drupal/ Core/ Utility/ token.api.php - Provide replacement values for placeholder tokens.
- NodeTokensHooks::tokens in core/
modules/ node/ src/ Hook/ NodeTokensHooks.php - Implements hook_tokens().
- node_tokens in core/
modules/ node/ node.tokens.inc - Implements hook_tokens().
- statistics_tokens in core/
modules/ statistics/ statistics.tokens.inc - Implements hook_tokens().
- SystemHooks::mail in core/
modules/ system/ src/ Hook/ SystemHooks.php - Implements hook_mail().
- SystemTokensHooks::tokens in core/
modules/ system/ src/ Hook/ SystemTokensHooks.php - Implements hook_tokens().
- system_tokens in core/
modules/ system/ system.tokens.inc - Implements hook_tokens().
- TaxonomyTokensHooks::tokens in core/
modules/ taxonomy/ src/ Hook/ TaxonomyTokensHooks.php - Implements hook_tokens().
- taxonomy_tokens in core/
modules/ taxonomy/ taxonomy.tokens.inc - Implements hook_tokens().
- TokenReplaceKernelTestBase::setUp in core/
modules/ system/ tests/ src/ Kernel/ Token/ TokenReplaceKernelTestBase.php - TokenReplaceTest::testTaxonomyTokenReplacement in core/
modules/ taxonomy/ tests/ src/ Kernel/ TokenReplaceTest.php - Creates some terms and a node, then tests the tokens generated from them.
- TokenReplaceTest::testTokenReplacement in core/
modules/ views/ tests/ src/ Kernel/ TokenReplaceTest.php - Tests core token replacements generated from a view.
- TokenReplaceTest::testTokenReplacementNoPath in core/
modules/ views/ tests/ src/ Kernel/ TokenReplaceTest.php - Tests path token replacements generated from a view without a path.
- TokenReplaceTest::testTokenReplacementNoResults in core/
modules/ views/ tests/ src/ Kernel/ TokenReplaceTest.php - Tests core token replacements generated from a view without results.
- TokenReplaceTest::testTokenReplacementWithMiniPager in core/
modules/ views/ tests/ src/ Kernel/ TokenReplaceTest.php - Tests core token replacements generated from a view.
- TokenReplaceTest::testTokenReplacementWithSpecificNumberOfItems in core/
modules/ views/ tests/ src/ Kernel/ TokenReplaceTest.php - Tests token replacement of [view:total-rows] when pager is disabled.
- UserHooks::mail in core/
modules/ user/ src/ Hook/ UserHooks.php - Implements hook_mail().
- UserTokenReplaceTest::testUserTokenReplacement in core/
modules/ user/ tests/ src/ Functional/ UserTokenReplaceTest.php - Creates a user, then tests the tokens generated from it.
- UserTokensHooks::tokens in core/
modules/ user/ src/ Hook/ UserTokensHooks.php - Implements hook_tokens().
- user_tokens in core/
modules/ user/ user.tokens.inc - Implements hook_tokens().
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.