Search for redirect

  1. Search 7.x for redirect
  2. Search 9.5.x for redirect
  3. Search 10.3.x for redirect
  4. Search 11.x for redirect
  5. Other projects
Title Object type File name Summary
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 enable.
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
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 Contains \Drupal\Tests\Component\HttpFoundation\SecuredRedirectResponseTest.
SecuredRedirectResponseTest::testRedirectCopy function core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php Test 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
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
UrlGeneratorTrait::redirect function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Returns a redirect response object for the specified route.
UrlGeneratorTraitTest::testRedirect function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @covers ::redirect
UserListBuilder::$redirectDestination property core/modules/user/src/UserListBuilder.php The redirect destination service.
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.