RouteProcessorCsrfTest::$csrfToken

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php \Drupal\Tests\Core\Access\RouteProcessorCsrfTest::csrfToken
  2. 8.9.x core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php \Drupal\Tests\Core\Access\RouteProcessorCsrfTest::csrfToken
  3. 10 core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php \Drupal\Tests\Core\Access\RouteProcessorCsrfTest::csrfToken

The mock CSRF token generator.

Type: \Drupal\Core\Access\CsrfTokenGenerator|\PHPUnit\Framework\MockObject\MockObject

File

core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php, line 24

Class

RouteProcessorCsrfTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Access%21RouteProcessorCsrf.php/class/RouteProcessorCsrf/11.x" title="Processes the outbound route to handle the CSRF token." class="local">\Drupal\Core\Access\RouteProcessorCsrf</a> @group Access

Namespace

Drupal\Tests\Core\Access

Code

protected $csrfToken;

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