36 calls to Drupal::token() in Drupal 10
- AreaTest::testRenderAreaToken in core/
modules/ views/ tests/ src/ Functional/ Handler/ AreaTest.php - Tests global tokens.
- 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.
- FileFieldPathTest::testUploadPath in core/
modules/ file/ tests/ src/ Functional/ FileFieldPathTest.php - Tests the normal formatter display on node display.
- FileItem::doGetUploadLocation in core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php - Determines the URI for a file field.
- 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.
- LinkFormatter::viewElements in core/
modules/ link/ src/ Plugin/ Field/ FieldFormatter/ LinkFormatter.php - Builds a renderable array for a field value.
- LinkSeparateFormatter::viewElements in core/
modules/ link/ src/ Plugin/ Field/ FieldFormatter/ LinkSeparateFormatter.php - Builds a renderable array for a field value.
- LocaleStringIsSafeTest::testLocalizedTokenizedString in core/
modules/ locale/ tests/ src/ Kernel/ LocaleStringIsSafeTest.php - Tests if a translated and tokenized string is properly escaped by Twig.
- MediaDisplayTest::testMediaDisplay in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaDisplayTest.php - Tests basic media display.
- MediaSourceImageTest::testMediaImageSource in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceImageTest.php - Tests the image media source.
- MediaStandardProfileTest::audioTest in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaStandardProfileTest.php - Tests the standard profile configuration for media type 'audio'.
- MediaStandardProfileTest::imageTest in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaStandardProfileTest.php - Tests the standard profile configuration for media type 'image'.
- MediaStandardProfileTest::videoTest in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaStandardProfileTest.php - Tests the standard profile configuration for media type 'video'.
- node_tokens in core/
modules/ node/ node.tokens.inc - Implements hook_tokens().
- PluginBase::getAvailableGlobalTokens in core/
modules/ views/ src/ Plugin/ views/ PluginBase.php - PluginBase::globalTokenReplace in core/
modules/ views/ src/ Plugin/ views/ PluginBase.php - StatisticsTokenReplaceTest::testStatisticsTokenReplacement in core/
modules/ statistics/ tests/ src/ Functional/ StatisticsTokenReplaceTest.php - Creates a node, then tests the statistics tokens generated from it.
- 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.
- TokenScanTest::testTokenScan in core/
modules/ system/ tests/ src/ Functional/ System/ TokenScanTest.php - Scans dummy text, then tests the output.
- 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().
- WidgetBase::getFilteredDescription in core/
lib/ Drupal/ Core/ Field/ WidgetBase.php - Returns the filtered field description.