function RouteProcessorCsrf::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Access/RouteProcessorCsrf.php \Drupal\Core\Access\RouteProcessorCsrf::__construct()
  2. 8.9.x core/lib/Drupal/Core/Access/RouteProcessorCsrf.php \Drupal\Core\Access\RouteProcessorCsrf::__construct()
  3. 10 core/lib/Drupal/Core/Access/RouteProcessorCsrf.php \Drupal\Core\Access\RouteProcessorCsrf::__construct()

Constructs a RouteProcessorCsrf object.

Parameters

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

File

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

Class

RouteProcessorCsrf
Processes the outbound route to handle the CSRF token.

Namespace

Drupal\Core\Access

Code

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

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