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
AggregatorTestRssController::testRedirect function core/modules/aggregator/tests/modules/aggregator_test/src/Controller/AggregatorTestRssController.php Generates a rest redirect to the test feed.
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.
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::$defaultTheme property core/modules/block_content/tests/src/Functional/Views/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 enable.
BlockContentRedirectTest::$testViews property core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php Views used by this test.
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.
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 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 url object for redirect path.
ContactFormInterface::setRedirectPath function core/modules/contact/src/ContactFormInterface.php Sets the redirect path.
contact_post_update_add_message_redirect_field_to_contact_form function core/modules/contact/contact.post_update.php Initialize 'message' and 'redirect' field values to 'contact_form' entities.
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.
DefaultsEntityForm::redirectOnSubmit function core/modules/layout_builder/src/Form/DefaultsEntityForm.php Form submission handler.
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.
DynamicPageCacheSubscriber::$dynamicPageCacheRedirectRenderArray property core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php Dynamic Page Cache's redirect render array.
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.
FeedDeleteForm::getRedirectUrl function core/modules/aggregator/src/Form/FeedDeleteForm.php Returns the URL where the user should be redirected after deletion.
FeedParserTest::testRedirectFeed function core/modules/aggregator/tests/src/Functional/FeedParserTest.php Tests that a redirected feed is tracked to its target.
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 Checks that the directory exists and is writable.
FileSystemDeprecationTest::testDeprecatedFilePrepareDirectory function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_prepare_directory() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::prepareDirectory(). See https://www.drupal.org/node/3006851.
FileSystemInterface::prepareDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Checks that the directory exists and is writable.
FormBase::redirect function core/lib/Drupal/Core/Form/FormBase.php Returns a redirect response object for the specified route.
FormBuilder::redirectForm function core/lib/Drupal/Core/Form/FormBuilder.php Redirects the user to a URL after a form has been processed.
FormBuilderTest::testHandleRedirectWithResponse function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the handling of a redirect when FormStateInterface::$response exists.
FormState::$no_redirect property core/lib/Drupal/Core/Form/FormState.php If set to TRUE the form will NOT perform a redirect, even if
self::$redirect is set.
FormState::$redirect property core/lib/Drupal/Core/Form/FormState.php Used to redirect the form on submission.
FormState::disableRedirect function core/lib/Drupal/Core/Form/FormState.php Prevents the form from redirecting.
FormState::getRedirect function core/lib/Drupal/Core/Form/FormState.php Gets the value to use for redirecting after the form has been executed.

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