Search for token
- Search 7.x for token
- Search 8.9.x for token
- Search 10.3.x for token
- Search 11.x for token
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
token | service | core/ |
Drupal\Core\Utility\Token |
Token | class | core/ |
Stores token data in a hidden form field. |
Token | class | core/ |
Drupal placeholder/token replacement system. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
CsrfTokenGenerator | class | core/ |
Generates and validates CSRF tokens. |
CsrfTokenGenerator.php | file | core/ |
|
CsrfTokenGenerator::$privateKey | property | core/ |
The private key service. |
CsrfTokenGenerator::$sessionMetadata | property | core/ |
The session metadata bag. |
CsrfTokenGenerator::computeToken | function | core/ |
Generates a token based on $value, the token seed, and the private key. |
CsrfTokenGenerator::get | function | core/ |
Generates a token based on $value, the user session, and the private key. |
CsrfTokenGenerator::validate | function | core/ |
Validates a token based on $value, the user session, and the private key. |
CsrfTokenGenerator::__construct | function | core/ |
Constructs the token generator. |
CsrfTokenGeneratorTest | class | core/ |
Tests the CsrfTokenGenerator class. |
CsrfTokenGeneratorTest.php | file | core/ |
|
CsrfTokenGeneratorTest::$generator | property | core/ |
The CSRF token generator. |
CsrfTokenGeneratorTest::$privateKey | property | core/ |
The mock private key instance. |
CsrfTokenGeneratorTest::$sessionMetadata | property | core/ |
The mock session metadata bag. |
CsrfTokenGeneratorTest::providerTestInvalidParameterTypes | function | core/ |
Provides data for testInvalidParameterTypes. |
CsrfTokenGeneratorTest::providerTestValidateParameterTypes | function | core/ |
Provides data for testValidateParameterTypes. |
CsrfTokenGeneratorTest::setUp | function | core/ |
|
CsrfTokenGeneratorTest::setupDefaultExpectations | function | core/ |
Set up default expectations on the mocks. |
CsrfTokenGeneratorTest::testGenerateSeedOnGet | function | core/ |
Tests that a new token seed is generated upon first use. |
CsrfTokenGeneratorTest::testGet | function | core/ |
Tests CsrfTokenGenerator::get(). |
CsrfTokenGeneratorTest::testGetWithNoHashSalt | function | core/ |
Tests the exception thrown when no 'hash_salt' is provided in settings. |
CsrfTokenGeneratorTest::testInvalidParameterTypes | function | core/ |
Tests CsrfTokenGenerator::validate() with invalid parameter types. |
CsrfTokenGeneratorTest::testValidate | function | core/ |
Tests CsrfTokenGenerator::validate(). |
CsrfTokenGeneratorTest::testValidateParameterTypes | function | core/ |
Tests CsrfTokenGenerator::validate() with different parameter types. |
CsrfTokenRaceTest | class | core/ |
Test race condition for CSRF tokens for simultaneous requests. |
CsrfTokenRaceTest.php | file | core/ |
|
CsrfTokenRaceTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
CsrfTokenRaceTest::$modules | property | core/ |
Modules to enable. |
CsrfTokenRaceTest::testCsrfRace | function | core/ |
Tests race condition for CSRF tokens for simultaneous requests. |
csrf_token | service | core/ |
Drupal\Core\Access\CsrfTokenGenerator |
DeprecatedCsrfTokenController | class | core/ |
Returns responses for Deprecated CSRF token routes. |
DeprecatedCsrfTokenController.php | file | core/ |
|
DeprecatedCsrfTokenController::$tokenGenerator | property | core/ |
The CSRF token generator. |
DeprecatedCsrfTokenController::create | function | core/ |
Instantiates a new instance of this class. |
DeprecatedCsrfTokenController::csrfToken | function | core/ |
Returns a CSRF using the deprecated 'rest' value protecting session token. |
DeprecatedCsrfTokenController::__construct | function | core/ |
Constructs a new CsrfTokenController object. |
DisplayPluginBase::getArgumentsTokens | function | core/ |
Returns to tokens for arguments. |
DisplayPluginInterface::getArgumentsTokens | function | core/ |
Returns to tokens for arguments. |
DocParser::findInitialTokenPosition | function | core/ |
Finds the first valid annotation |
Drupal::csrfToken | function | core/ |
Returns the CSRF token manager service. |
Drupal::token | function | core/ |
Returns the token service. |
DrupalTest::testCsrfToken | function | core/ |
Tests the csrfToken() method. |
DrupalTest::testToken | function | core/ |
Tests the token() method. |
DynamicPluginConfigWithCsrfTokenUrlTrait | trait | core/ |
Provides a trait for CKEditor 5 with dynamically generated CSRF token URLs. |
DynamicPluginConfigWithCsrfTokenUrlTrait.php | file | core/ |
|
DynamicPluginConfigWithCsrfTokenUrlTrait::getUrlWithReplacedCsrfTokenPlaceholder | function | core/ |
Gets the given URL with all placeholders replaced. |
EmailAction::$token | property | core/ |
The token service. |
EntityField::addSelfTokens | function | core/ |
Add any special tokens this field might use for itself. |
EntityField::documentSelfTokens | function | core/ |
Document any special tokens this field might use for itself. |
EntityTest::providerTestTokens | function | core/ |
Data provider for testing different types of tokens. |
EntityTest::testRenderWithIdAndToken | function | core/ |
@covers ::render @covers ::defineOptions @covers ::init |
Pagination
- Previous page
- Page 2
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.