You are here

service token in Drupal 8

Same name and namespace in other branches
  1. 9 core/core.services.yml \token

Class

Drupal\Core\Utility\Token
14 string references to token
BatchStorage::schemaDefinition in core/lib/Drupal/Core/Batch/BatchStorage.php
Defines the schema for the batch table.
ContentTranslationHandler::entityFormSharedElements in core/modules/content_translation/src/ContentTranslationHandler.php
Process callback: determines which elements get clue in the form.
ContentTranslationHandlerTest::providerTestEntityFormSharedElements in core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php
Returns test cases for ::testEntityFormSharedElements().
CsrfAccessCheck::access in core/lib/Drupal/Core/Access/CsrfAccessCheck.php
Checks access based on a CSRF token for the request.
DrupalTest::testToken in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the token() method.

... See full list

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Utility\Token
  2. arguments:
  3. - '@module_handler'
  4. - '@cache.default'
  5. - '@language_manager'
  6. - '@cache_tags.invalidator'
  7. - '@renderer'