function RouteProcessorCsrf::__construct

RouteProcessorCsrf::__construct(CsrfTokenGenerator $csrf_token)

Constructs a RouteProcessorCsrf object.

Parameters

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

File

core/lib/Drupal/Core/Access/RouteProcessorCsrf.php, line 27

Class

RouteProcessorCsrf
Processes the outbound route to handle the CSRF token.

Namespace

Drupal\Core\Access

Code

function __construct(CsrfTokenGenerator $csrf_token) {
  $this->csrfToken = $csrf_token;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Access!RouteProcessorCsrf.php/function/RouteProcessorCsrf::__construct/8.1.x