Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
Drupal.php
»
Drupal
»
Drupal::token
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
20 calls to Drupal::token()
CommentTokenReplaceTest::testCommentTokenReplacement
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentTokenReplaceTest.php
Creates a comment, then tests the tokens generated from it.
comment_tokens
in drupal/
core/
modules/
comment/
comment.tokens.inc
Implements
hook_tokens
().
FileTokenReplaceTest::testFileTokenReplacement
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileTokenReplaceTest.php
Creates a file, then tests the tokens generated from it.
hook_tokens
in drupal/
core/
modules/
system/
system.api.php
Provide replacement values for placeholder tokens.
NodeTokenReplaceTest::testNodeTokenReplacement
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeTokenReplaceTest.php
Creates a node, then tests the tokens generated from it.
node_tokens
in drupal/
core/
modules/
node/
node.tokens.inc
Implements
hook_tokens
().
statistics_tokens
in drupal/
core/
modules/
statistics/
statistics.tokens.inc
Implements
hook_tokens
().
system_mail
in drupal/
core/
modules/
system/
system.module
Implements
hook_mail
().
system_tokens
in drupal/
core/
modules/
system/
system.tokens.inc
Implements
hook_tokens
().
taxonomy_tokens
in drupal/
core/
modules/
taxonomy/
taxonomy.tokens.inc
Implements
hook_tokens
().
TokenReplaceTest::testSystemDateTokenReplacement
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
TokenReplaceTest.php
Tests the generation of all system date tokens.
TokenReplaceTest::testSystemSiteTokenReplacement
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
TokenReplaceTest.php
Tests the generation of all system site information tokens.
TokenReplaceTest::testSystemTokenRecognition
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
TokenReplaceTest.php
Test whether token-replacement works in various contexts.
TokenReplaceTest::testTaxonomyTokenReplacement
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
TokenReplaceTest.php
Creates some terms and a node, then tests the tokens generated from them.
TokenReplaceTest::testTokenReplacement
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
TokenReplaceTest.php
Tests core token replacements generated from a view.
TokenReplaceTest::testTokenReplacement
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
TokenReplaceTest.php
Creates a user and a node, then tests the tokens generated from them.
UserTokenReplaceTest::testUserTokenReplacement
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserTokenReplaceTest.php
Creates a user, then tests the tokens generated from it.
user_mail
in drupal/
core/
modules/
user/
user.module
Implements
hook_mail
().
user_tokens
in drupal/
core/
modules/
user/
user.tokens.inc
Implements
hook_tokens
().
views_tokens
in drupal/
core/
modules/
views/
views.tokens.inc
Implements
hook_tokens
().