function PathProcessorFrontTest::providerProcessInbound
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php \Drupal\Tests\Core\PathProcessor\PathProcessorFrontTest::providerProcessInbound()
- 8.9.x core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php \Drupal\Tests\Core\PathProcessor\PathProcessorFrontTest::providerProcessInbound()
- 11.x core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php \Drupal\Tests\Core\PathProcessor\PathProcessorFrontTest::providerProcessInbound()
Inbound paths and expected results.
File
-
core/
tests/ Drupal/ Tests/ Core/ PathProcessor/ PathProcessorFrontTest.php, line 44
Class
- PathProcessorFrontTest
- Test front page path processing.
Namespace
Drupal\Tests\Core\PathProcessorCode
public static function providerProcessInbound() {
return [
'accessing frontpage' => [
'/node',
'/',
'/node',
],
'accessing non frontpage' => [
'/node',
'/user',
'/user',
],
'accessing frontpage with query parameters' => [
'/node?example=muh',
'/',
'/node',
[
'example' => 'muh',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.