You are here

service csrf_token in Drupal 9

Same name and namespace in other branches
  1. 8 core/core.services.yml \csrf_token

Class

Drupal\Core\Access\CsrfTokenGenerator
9 string references to csrf_token
CsrfTokenController::create in core/modules/system/src/Controller/CsrfTokenController.php
Instantiates a new instance of this class.
DeprecatedCsrfTokenController::create in core/modules/system/tests/modules/csrf_test/src/Controller/DeprecatedCsrfTokenController.php
Instantiates a new instance of this class.
Drupal::csrfToken in core/lib/Drupal.php
Returns the CSRF token manager service.
DrupalTest::testCsrfToken in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the csrfToken() method.
FormBuilderTest::testGetCache in core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
Tests the getCache() method.

... See full list

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Access\CsrfTokenGenerator
  2. arguments:
  3. - '@private_key'
  4. - '@session_manager.metadata_bag'