You are here

20 calls to Drupal::token() in Drupal 8

CommentTokenReplaceTest::testCommentTokenReplacement in core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
Creates a comment, then tests the tokens generated from it.
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.
FileTokenReplaceTest::testFileTokenReplacement in core/modules/file/tests/src/Functional/FileTokenReplaceTest.php
Creates a file, then tests the tokens generated from it.
file_tokens in core/modules/file/file.module
Implements hook_tokens().
hook_tokens in core/lib/Drupal/Core/Utility/token.api.php
Provide replacement values for placeholder 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().
system_mail in core/modules/system/system.module
Implements hook_mail().
system_tokens in core/modules/system/system.tokens.inc
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/Functional/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.
UserTokenReplaceTest::testUserTokenReplacement in core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
Creates a user, then tests the tokens generated from it.
user_mail in core/modules/user/user.module
Implements hook_mail().
user_tokens in core/modules/user/user.tokens.inc
Implements hook_tokens().