Token::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Utility/Token.php, line 98 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code protected $moduleHandler;

Token::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/lib/Drupal/Core/Utility/Token.php, line 79 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code protected $languageManager;

Token::$cacheTagsInvalidator

The cache tags invalidator. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface File core/lib/Drupal/Core/Utility/Token.php, line 105 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code protected $cacheTagsInvalidator;

Token::$cache

The token cache. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Utility/Token.php, line 72 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code protected $cache;

Token

Stores token data in a hidden form field. This is generally used to protect against cross-site forgeries. A token element is automatically added to each Drupal form by an implementation of \Drupal\Core\Form\FormBuilderInterface::prepareForm() so you don't generally have to add one yourself. Plugin annotation @FormElement("token") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses Depen

Token

Drupal placeholder/token replacement system. API functions for replacing placeholders in text with meaningful values. For example: When configuring automated emails, an administrator enters standard text for the email. Variables like the title of a node and the date the email was sent can be entered as placeholders like [node:title] and [date:short]. When a Drupal module prepares to send the email, it can call the Token::replace() function, passing in the text. The token system will scan the te

TitleResolverInterface::getTitle

public TitleResolverInterface::getTitle(Request $request, Route $route) Returns a static or dynamic title for the route. If the returned title can contain HTML that should not be escaped it should return a render array, for example: ['#markup' => 'title', '#allowed_tags' => ['em']] If the method returns a string and it is not marked safe then it will be auto-escaped. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object passed to the title callback. \Symfony

TitleResolverInterface

Defines a class which knows how to generate the title from a given route. Hierarchy interface \Drupal\Core\Controller\TitleResolverInterface File core/lib/Drupal/Core/Controller/TitleResolverInterface.php, line 11 Namespace Drupal\Core\Controller Members Name Modifiers Type Description TitleResolverInterface::getTitle public function Returns a static or dynamic title for the route.

TitleResolver::__construct

public TitleResolver::__construct(ControllerResolverInterface $controller_resolver, TranslationInterface $string_translation) Constructs a TitleResolver instance. Parameters \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver. \Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager. File core/lib/Drupal/Core/Controller/TitleResolver.php, line 31 Class TitleResolver Provides the default implementation of

TitleResolver::getTitle

public TitleResolver::getTitle(Request $request, Route $route) Returns a static or dynamic title for the route. If the returned title can contain HTML that should not be escaped it should return a render array, for example: ['#markup' => 'title', '#allowed_tags' => ['em']] If the method returns a string and it is not marked safe then it will be auto-escaped. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object passed to the title callback. \Symfony\Componen