You are here

public function AggregatorTestRssController::testRedirect in Drupal 9

Same name and namespace in other branches
  1. 8 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\Controller

Code

public function testRedirect() {
  return $this
    ->redirect('aggregator_test.feed', [], [], 301);
}