CsrfTokenController::__construct

public CsrfTokenController::__construct(CsrfTokenGenerator $token_generator)

Constructs a new CsrfTokenController object.

Parameters

\Drupal\Core\Access\CsrfTokenGenerator $token_generator: The CSRF token generator.

File

core/modules/system/src/Controller/CsrfTokenController.php, line 29

Class

CsrfTokenController
Returns responses for CSRF token routes.

Namespace

Drupal\system\Controller

Code

public function __construct(CsrfTokenGenerator $token_generator) {
  $this->tokenGenerator = $token_generator;
}
doc_Drupal
2016-10-29 08:59:12
Comments
Leave a Comment

Please login to continue.