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
RedirectResponseSubscriber::checkRedirectUrl function core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php Allows manipulation of the response object when performing a redirect.
RedirectResponseSubscriber::getDestinationAsAbsoluteUrl function core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php Converts the passed in destination into an absolute URL.
RedirectResponseSubscriber::getSubscribedEvents function core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php Registers the methods in this class that should be listeners.
RedirectResponseSubscriber::setIgnoreDestination function core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php Set whether the redirect response will ignore the destination query param.
RedirectResponseSubscriber::__construct function core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php Constructs a RedirectResponseSubscriber object.
RedirectResponseSubscriberTest class core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php @coversDefaultClass \Drupal\Core\EventSubscriber\RedirectResponseSubscriber
@group EventSubscriber
RedirectResponseSubscriberTest.php file core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php
RedirectResponseSubscriberTest::$loggerClosure property core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php The mocked logger closure.
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.
redirect_leading_slashes_subscriber service core/core.services.yml Drupal\Core\EventSubscriber\RedirectLeadingSlashesSubscriber
redirect_response_subscriber service core/core.services.yml Drupal\Core\EventSubscriber\RedirectResponseSubscriber
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.

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