csrf_token
Same name in other branches
- 9 core/core.services.yml \csrf_token
- 8.9.x core/core.services.yml \csrf_token
Class
Drupal\Core\Access\CsrfTokenGenerator8 string references to csrf_token
- CsrfTokenController::create in core/
modules/ system/ src/ Controller/ CsrfTokenController.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.
- MachineName::processMachineName in core/
lib/ Drupal/ Core/ Render/ Element/ MachineName.php - Processes a machine-readable name form element.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Access\CsrfTokenGenerator
- arguments:
- - '@private_key'
- - '@session_manager.metadata_bag'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.