public function YamlFormTokenManager::__construct in YAML Form 8
Constructs a YamlFormTokenManager object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Utility\Token $token: The token service.
File
- src/
YamlFormTokenManager.php, line 36
Class
- YamlFormTokenManager
- Defines a class to manage token replacement.
Namespace
Drupal\yamlformCode
public function __construct(ModuleHandlerInterface $module_handler, Token $token) {
$this->moduleHandler = $module_handler;
$this->token = $token;
}