You are here

public function MachineNameController::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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\system

Code

public function __construct(TransliterationInterface $transliteration, CsrfTokenGenerator $token_generator) {
  $this->transliteration = $transliteration;
  $this->tokenGenerator = $token_generator;
}