private function DomainTokenTest::tokenList in Domain Access 8
Gets the list of tokens and value callbacks used by the test.
Return value
array An array keyed by token string, with value of expected domain value.
1 call to DomainTokenTest::tokenList()
- DomainTokenTest::testDomainTokens in domain/
tests/ src/ Functional/ DomainTokenTest.php - Tests the handling of an inbound request.
File
- domain/
tests/ src/ Functional/ DomainTokenTest.php, line 66
Class
- DomainTokenTest
- Tests the domain token handler.
Namespace
Drupal\Tests\domain\FunctionalCode
private function tokenList() {
$tokens = [];
foreach (\Drupal::service('domain.token')
->getCallbacks() as $key => $callback) {
$name = "[domain:{$key}]";
$tokens[$name] = $callback;
}
return $tokens;
}