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 10.3.x for redirect
  5. Other projects
Title Object type File name Summary
RedirectResponseSubscriberTest::$requestContext property core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php The mocked request context.
RedirectResponseSubscriberTest::$urlAssembler property core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php The mocked request context.
RedirectResponseSubscriberTest::providerTestDestinationRedirect function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php Data provider for testDestinationRedirect().
RedirectResponseSubscriberTest::providerTestDestinationRedirectToExternalUrl function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php Data provider for testDestinationRedirectToExternalUrl().
RedirectResponseSubscriberTest::providerTestDestinationRedirectWithInvalidUrl function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php Data provider for testDestinationRedirectWithInvalidUrl().
RedirectResponseSubscriberTest::setUp function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php
RedirectResponseSubscriberTest::testDestinationRedirect function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php Tests destination detection and redirection.
RedirectResponseSubscriberTest::testDestinationRedirectToExternalUrl function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php @dataProvider providerTestDestinationRedirectToExternalUrl
RedirectResponseSubscriberTest::testDestinationRedirectWithInvalidUrl function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php @dataProvider providerTestDestinationRedirectWithInvalidUrl
RedirectResponseSubscriberTest::testRedirectWithOptInExternalUrl function core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php @covers ::checkRedirectUrl
RedirectTest class core/modules/system/tests/src/Functional/Form/RedirectTest.php Tests form redirection functionality.
RedirectTest class core/modules/views_ui/tests/src/Functional/RedirectTest.php Tests the redirecting after saving a views.
RedirectTest.php file core/modules/system/tests/src/Functional/Form/RedirectTest.php
RedirectTest.php file core/modules/views_ui/tests/src/Functional/RedirectTest.php
RedirectTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/RedirectTest.php The theme to install as the default for testing.
RedirectTest::$defaultTheme property core/modules/views_ui/tests/src/Functional/RedirectTest.php The theme to install as the default for testing.
RedirectTest::$modules property core/modules/system/tests/src/Functional/Form/RedirectTest.php Modules to install.
RedirectTest::$testViews property core/modules/views_ui/tests/src/Functional/RedirectTest.php Views used by this test.
RedirectTest::testRedirect function core/modules/system/tests/src/Functional/Form/RedirectTest.php Tests form redirection.
RedirectTest::testRedirect function core/modules/views_ui/tests/src/Functional/RedirectTest.php Tests the redirecting.
RedirectTest::testRedirectFromErrorPages function core/modules/system/tests/src/Functional/Form/RedirectTest.php Tests form redirection from 404/403 pages with the Block form.
RouteSubscriber::addRedirectRoute function core/modules/block_content/src/Routing/RouteSubscriber.php Adds a redirect route.
ScanDirectoryTest::testIgnoreDirectories function core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php Tests ::scanDirectory obeys 'file_scan_ignore_directories' setting.
SearchController::redirectSearchPage function core/modules/search/src/Controller/SearchController.php Redirects to a search page.
SectionStorageInterface::getRedirectUrl function core/modules/layout_builder/src/SectionStorageInterface.php Gets the URL used when redirecting away from the Layout Builder UI.
SecuredRedirectResponse class core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php Provides a common base class for safe redirects.
SecuredRedirectResponse.php file core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
SecuredRedirectResponse::createFromRedirectResponse function core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php Copies an existing redirect response into a safe one.
SecuredRedirectResponse::fromResponse function core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php Copies over the values from the given response.
SecuredRedirectResponse::isSafe function core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php Returns whether the URL is considered as safe to redirect to.
SecuredRedirectResponse::setTargetUrl function core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
SecuredRedirectResponseTest class core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php Test secure redirect base class.
SecuredRedirectResponseTest.php file core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php
SecuredRedirectResponseTest::testRedirectCopy function core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php Tests copying of redirect response.
SecuredRedirectStub class core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php
SecuredRedirectStub::isSafe function core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php Returns whether the URL is considered as safe to redirect to.
ShortcutDeleteForm::getRedirectUrl function core/modules/shortcut/src/Form/ShortcutDeleteForm.php Returns the URL where the user should be redirected after deletion.
SimpleConfigSectionStorage::getRedirectUrl function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php Gets the URL used when redirecting away from the Layout Builder UI.
SystemListingTest::testFileScanIgnoreDirectory function core/modules/system/tests/src/Kernel/Common/SystemListingTest.php Tests that directories matching file_scan_ignore_directories are ignored.
SystemTestController::respondWithCacheableRedirectResponse function core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php Returns a CacheableRedirectResponse with the given status code.
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.
TermTest::testRedirects function core/modules/taxonomy/tests/src/Functional/TermTest.php Tests destination after saving terms.
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.

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