Search for redirect

  1. Search 7.x for redirect
  2. Search 9.5.x for redirect
  3. Search 8.9.x for redirect
  4. Search 11.x for redirect
  5. Other projects
Title Object type File name Summary
SystemTestController::respondWithLocalRedirectResponse function core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php Returns a LocalRedirectResponse with the given status code.
SystemTestController::respondWithTrustedRedirectResponse function core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php Returns a TrustedRedirectResponse with the given status code.
TermDeleteForm::getRedirectUrl function core/modules/taxonomy/src/Form/TermDeleteForm.php Returns the URL where the user should be redirected after deletion.
TestSiteInstallCommand::ensureDirectory function core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php Ensures that the sites/simpletest directory exists and is writable.
TestStateBasedSectionStorage::getRedirectUrl function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php Gets the URL used when redirecting away from the Layout Builder UI.
TrustedRedirectResponse class core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Provides a redirect response which contains trusted URLs.
TrustedRedirectResponse.php file core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php
TrustedRedirectResponse::$trustedUrls property core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php A list of trusted URLs, which are safe to redirect to.
TrustedRedirectResponse::isSafe function core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Returns whether the URL is considered as safe to redirect to.
TrustedRedirectResponse::setTrustedTargetUrl function core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Sets the target URL to a trusted URL.
TrustedRedirectResponse::__construct function core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php
TrustedRedirectResponseTest class core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @coversDefaultClass \Drupal\Core\Routing\TrustedRedirectResponse
@group Routing
TrustedRedirectResponseTest.php file core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php
TrustedRedirectResponseTest::providerCreateFromRedirectResponse function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php
TrustedRedirectResponseTest::testCreateFromRedirectResponse function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::createFromRedirectResponse
@dataProvider providerCreateFromRedirectResponse
TrustedRedirectResponseTest::testSetTargetUrlWithInternalUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
TrustedRedirectResponseTest::testSetTargetUrlWithTrustedUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
TrustedRedirectResponseTest::testSetTargetUrlWithUntrustedUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
UpdateController::updateRedirect function core/modules/update/src/Controller/UpdateController.php Provides a redirect to update page.
UserAuthTest::testAddCheckToUrlForTrustedRedirectResponse function core/modules/user/tests/src/Unit/UserAuthTest.php Tests the auth that ends in a redirect from subdomain to TLD.
UserAuthTest::testAddCheckToUrlForTrustedRedirectResponseWithFragment function core/modules/user/tests/src/Unit/UserAuthTest.php Tests the auth that ends in a redirect from subdomain with a fragment to TLD.
UserController::determineErrorRedirect function core/modules/user/src/Controller/UserController.php Validates user, hash, and timestamp.
UserListBuilder::$redirectDestination property core/modules/user/src/UserListBuilder.php The redirect destination service.
VariationCache::getRedirectChain function core/lib/Drupal/Core/Cache/VariationCache.php Performs a full get, returning every step of the way.
ViewAjaxController::$redirectDestination property core/modules/views/src/Controller/ViewAjaxController.php The redirect destination.
ViewAjaxControllerTest::$redirectDestination property core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php The redirect destination.
views.view.test_block_content_redirect_destination.yml file core/modules/block_content/tests/modules/block_content_test_views/test_views/views.view.test_block_content_redirect_destination.yml core/modules/block_content/tests/modules/block_content_test_views/test_views/views.view.test_block_content_redirect_destination.yml
views.view.test_redirect_view.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.