Search for to

  1. Search 7.x for to
  2. Search 9.5.x for to
  3. Search 8.9.x for to
  4. Search 11.x for to
  5. Other projects
Title Object type File name Summary
CsrfAccessCheckTest::testAccessTokenPass function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php Tests the access() method with a valid token.
CsrfAccessCheckTest::testCsrfTokenInvalid function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @covers ::access
CsrfAccessCheckTest::testCsrfTokenMissing function core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @covers ::access
CsrfRequestHeaderAccessCheck::$csrfToken property core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php The token generator.
CsrfRequestHeaderAccessCheck::TOKEN_KEY constant core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php A string key that will used to designate the token used by this class.
CsrfTokenController class core/modules/system/src/Controller/CsrfTokenController.php Returns responses for CSRF token routes.
CsrfTokenController.php file core/modules/system/src/Controller/CsrfTokenController.php
CsrfTokenController::$tokenGenerator property core/modules/system/src/Controller/CsrfTokenController.php The CSRF token generator.
CsrfTokenController::create function core/modules/system/src/Controller/CsrfTokenController.php Instantiates a new instance of this class.
CsrfTokenController::csrfToken function core/modules/system/src/Controller/CsrfTokenController.php Returns a CSRF protecting session token.
CsrfTokenController::__construct function core/modules/system/src/Controller/CsrfTokenController.php Constructs a new CsrfTokenController object.
CsrfTokenGenerator class core/lib/Drupal/Core/Access/CsrfTokenGenerator.php Generates and validates CSRF tokens.
CsrfTokenGenerator.php file core/lib/Drupal/Core/Access/CsrfTokenGenerator.php
CsrfTokenGenerator::$privateKey property core/lib/Drupal/Core/Access/CsrfTokenGenerator.php The private key service.
CsrfTokenGenerator::$sessionMetadata property core/lib/Drupal/Core/Access/CsrfTokenGenerator.php The session metadata bag.
CsrfTokenGenerator::computeToken function core/lib/Drupal/Core/Access/CsrfTokenGenerator.php Generates a token based on $value, the token seed, and the private key.
CsrfTokenGenerator::get function core/lib/Drupal/Core/Access/CsrfTokenGenerator.php Generates a token based on $value, the user session, and the private key.
CsrfTokenGenerator::validate function core/lib/Drupal/Core/Access/CsrfTokenGenerator.php Validates a token based on $value, the user session, and the private key.
CsrfTokenGenerator::__construct function core/lib/Drupal/Core/Access/CsrfTokenGenerator.php Constructs the token generator.
CsrfTokenGeneratorTest class core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests the CsrfTokenGenerator class.
CsrfTokenGeneratorTest.php file core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
CsrfTokenGeneratorTest::$generator property core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php The CSRF token generator.
CsrfTokenGeneratorTest::$privateKey property core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php The mock private key instance.
CsrfTokenGeneratorTest::$sessionMetadata property core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php The mock session metadata bag.
CsrfTokenGeneratorTest::providerTestInvalidParameterTypes function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Provides data for testInvalidParameterTypes.
CsrfTokenGeneratorTest::providerTestValidateParameterTypes function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Provides data for testValidateParameterTypes.
CsrfTokenGeneratorTest::setUp function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
CsrfTokenGeneratorTest::setupDefaultExpectations function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Set up default expectations on the mocks.
CsrfTokenGeneratorTest::testGenerateSeedOnGet function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests that a new token seed is generated upon first use.
CsrfTokenGeneratorTest::testGet function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests CsrfTokenGenerator::get().
CsrfTokenGeneratorTest::testGetWithNoHashSalt function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests the exception thrown when no 'hash_salt' is provided in settings.
CsrfTokenGeneratorTest::testInvalidParameterTypes function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests CsrfTokenGenerator::validate() with invalid parameter types.
CsrfTokenGeneratorTest::testValidate function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests CsrfTokenGenerator::validate().
CsrfTokenGeneratorTest::testValidateParameterTypes function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests CsrfTokenGenerator::validate() with different parameter types.
CsrfTokenRaceTest class core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php Test race condition for CSRF tokens for simultaneous requests.
CsrfTokenRaceTest.php file core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php
CsrfTokenRaceTest::$defaultTheme property core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php The theme to install as the default for testing.
CsrfTokenRaceTest::$modules property core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php Modules to install.
CsrfTokenRaceTest::testCsrfRace function core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php Tests race condition for CSRF tokens for simultaneous requests.
csrf_token service core/core.services.yml Drupal\Core\Access\CsrfTokenGenerator
CssCollectionRenderer::$fileUrlGenerator property core/lib/Drupal/Core/Asset/CssCollectionRenderer.php The file URL generator.
CssCommand::$selector property core/lib/Drupal/Core/Ajax/CssCommand.php A CSS selector string.
CssOptimizer::$fileUrlGenerator property core/lib/Drupal/Core/Asset/CssOptimizer.php The file URL generator.
CssOptimizerUnitTest::$fileUrlGenerator property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php The file URL generator mock.
CssOptimizerUnitTest::providerTestOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Provides data for the CSS asset optimizing test.
CssOptimizerUnitTest::testOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests optimizing a CSS asset group containing 'type' => 'file'.
CurrentUserContext::$userStorage property core/modules/user/src/ContextProvider/CurrentUserContext.php The user storage.
Custom class core/modules/views/src/Plugin/views/field/Custom.php A handler to provide a field that is completely custom by the administrator.
Custom.php file core/modules/views/src/Plugin/views/field/Custom.php
custom.yml file core/tests/Drupal/Tests/Core/DrupalKernel/fixtures/custom.yml core/tests/Drupal/Tests/Core/DrupalKernel/fixtures/custom.yml

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