function AggregatorTestRssController::testRedirect
Same name in other branches
- 9 core/modules/aggregator/tests/modules/aggregator_test/src/Controller/AggregatorTestRssController.php \Drupal\aggregator_test\Controller\AggregatorTestRssController::testRedirect()
Generates a rest redirect to the test feed.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse A response that redirects users to the test feed.
1 string reference to 'AggregatorTestRssController::testRedirect'
- aggregator_test.routing.yml in core/
modules/ aggregator/ tests/ modules/ aggregator_test/ aggregator_test.routing.yml - core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.routing.yml
File
-
core/
modules/ aggregator/ tests/ modules/ aggregator_test/ src/ Controller/ AggregatorTestRssController.php, line 73
Class
- AggregatorTestRssController
- Controller for the aggregator_test module.
Namespace
Drupal\aggregator_test\ControllerCode
public function testRedirect() {
return $this->redirect('aggregator_test.feed', [], [], 301);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.