function Token::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()
- 10 core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()
- 9 core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()
- 8.9.x core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()
Constructs a new class instance.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Cache\CacheBackendInterface $cache: The token cache.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cacheTagsInvalidator: The cache tags invalidator.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
File
-
core/
lib/ Drupal/ Core/ Utility/ Token.php, line 96
Class
- Token
- Drupal placeholder/token replacement system.
Namespace
Drupal\Core\UtilityCode
public function __construct(protected ModuleHandlerInterface $moduleHandler, protected CacheBackendInterface $cache, protected LanguageManagerInterface $languageManager, protected CacheTagsInvalidatorInterface $cacheTagsInvalidator, protected RendererInterface $renderer) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.