function MachineNameController::__construct

Same name in other branches
  1. 9 core/modules/system/src/MachineNameController.php \Drupal\system\MachineNameController::__construct()
  2. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.