public function MachineNameController::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/src/MachineNameController.php \Drupal\system\MachineNameController::__construct()
Constructs a MachineNameController object.
Parameters
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration helper.
\Drupal\Core\Access\CsrfTokenGenerator $token_generator: The token generator.
File
- core/
modules/ system/ src/ MachineNameController.php, line 40
Class
- MachineNameController
- Controller routines for machine name transliteration routes.
Namespace
Drupal\systemCode
public function __construct(TransliterationInterface $transliteration, CsrfTokenGenerator $token_generator) {
$this->transliteration = $transliteration;
$this->tokenGenerator = $token_generator;
}