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
AjaxCommandsTest::testRedirectCommand function core/tests/Drupal/Tests/Core/Ajax/AjaxCommandsTest.php @covers \Drupal\Core\Ajax\RedirectCommand
BatchTestController::testFinishRedirect function core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php Fires a batch process without a form submission and a finish redirect.
BatchTestController::testRedirect function core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php Redirects successfully.
BigPipeTest::assertBigPipeNoJsMetaRefreshRedirect function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Calls ::performMetaRefresh() and asserts the responses.
BlockContentController::blockContentTypeRedirect function core/modules/block_content/src/Controller/BlockContentController.php Provides a redirect to the list of block types.
BlockContentController::blockLibraryRedirect function core/modules/block_content/src/Controller/BlockContentController.php Provides a redirect to the content block library.
BlockContentController::editRedirect function core/modules/block_content/src/Controller/BlockContentController.php Provides a redirect to block edit page.
BlockContentRedirectTest class core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php Ensures that custom block type functions work correctly.
BlockContentRedirectTest class core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php Tests the redirect destination on block content on entity operations.
BlockContentRedirectTest.php file core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php
BlockContentRedirectTest.php file core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php
BlockContentRedirectTest::$defaultTheme property core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php The theme to install as the default for testing.
BlockContentRedirectTest::$defaultTheme property core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php The theme to install as the default for testing.
BlockContentRedirectTest::$modules property core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php Modules to install.
BlockContentRedirectTest::$testViews property core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php Views used by this test.
BlockContentRedirectTest::testBlockContentDeleteRedirect function core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php Tests the deprecation message from the old block delete page.
BlockContentRedirectTest::testBlockContentEditRedirect function core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php Tests the deprecation message from the old block edit page.
BlockContentRedirectTest::testBlockContentTypeRedirect function core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php Tests the deprecation message from the old block-type page.
BlockContentRedirectTest::testBlockLibraryRedirect function core/modules/block_content/tests/src/Functional/BlockContentRedirectTest.php Tests the deprecation message from the old block library page.
BlockContentRedirectTest::testRedirectDestination function core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php Tests the redirect destination when editing block content.
BlockEntitySettingTrayForm::getRedirectUrl function core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php Gets the form's redirect URL from 'destination' provide in the request.
CacheableRedirectResponse class core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php A RedirectResponse that contains and can expose cacheability metadata.
CacheableRedirectResponse.php file core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php
CacheableSecuredRedirectResponse class core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Provides a common base class for cacheable safe redirects.
CacheableSecuredRedirectResponse.php file core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php
CacheableSecuredRedirectResponse::fromResponse function core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Copies over the values from the given response.
CacheRedirect class core/lib/Drupal/Core/Cache/CacheRedirect.php Defines a value object to represent a cache redirect.
CacheRedirect.php file core/lib/Drupal/Core/Cache/CacheRedirect.php
CacheRedirect::__construct function core/lib/Drupal/Core/Cache/CacheRedirect.php Constructs a CacheRedirect object.
CommentController::redirectNode function core/modules/comment/src/Controller/CommentController.php Redirects legacy node links to the new path.
ContactForm::$redirect property core/modules/contact/src/Entity/ContactForm.php The path to redirect to on form submission.
ContactForm::getRedirectPath function core/modules/contact/src/Entity/ContactForm.php Returns the path for redirect.
ContactForm::getRedirectUrl function core/modules/contact/src/Entity/ContactForm.php Returns the \Drupal\Core\Url object for redirect path.
ContactForm::setRedirectPath function core/modules/contact/src/Entity/ContactForm.php Sets the redirect path.
ContactFormInterface::getRedirectPath function core/modules/contact/src/ContactFormInterface.php Returns the path for redirect.
ContactFormInterface::getRedirectUrl function core/modules/contact/src/ContactFormInterface.php Returns the \Drupal\Core\Url object for redirect path.
ContactFormInterface::setRedirectPath function core/modules/contact/src/ContactFormInterface.php Sets the redirect path.
ControllerBase::redirect function core/lib/Drupal/Core/Controller/ControllerBase.php Returns a redirect response object for the specified route.
CustomPageExceptionHtmlSubscriberTest::$redirectDestination property core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php The mocked redirect.destination service.
DefaultExceptionHtmlSubscriber::$redirectDestination property core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php The redirect destination service.
DefaultsSectionStorage::getRedirectUrl function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets the URL used when redirecting away from the Layout Builder UI.
DeleteForm::getRedirectUrl function core/modules/comment/src/Form/DeleteForm.php Returns the URL where the user should be redirected after deletion.
DirectoryTest::testMultiplePrepareDirectory function core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php Tests asynchronous directory creation.
Drupal\Core\Routing\RedirectDestinationInterface service core/core.services.yml
EntityController::redirect function core/lib/Drupal/Core/Entity/Controller/EntityController.php Returns a redirect response object for the specified route.
EntityDeleteFormTrait::getRedirectUrl function core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php Returns the URL where the user should be redirected after deletion.
EntityListBuilderTest::$redirectDestination property core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php The redirect destination service.
EntityTypeInfo::bundleFormRedirect function core/modules/content_moderation/src/EntityTypeInfo.php Redirect content entity edit forms on save, if there is a pending revision.
FileStorage::ensureDirectory function core/lib/Drupal/Component/PhpStorage/FileStorage.php Ensures the directory exists, has the right permissions, and a .htaccess.
FileSystem::prepareDirectory function core/lib/Drupal/Core/File/FileSystem.php

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