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
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.
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.
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 Checks that the directory exists and is writable.
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
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.
FormState::isRedirectDisabled function core/lib/Drupal/Core/Form/FormState.php Determines if redirecting has been prevented.
FormState::setRedirect function core/lib/Drupal/Core/Form/FormState.php Sets the redirect for the form.
FormState::setRedirectUrl function core/lib/Drupal/Core/Form/FormState.php Sets the redirect URL for the form.

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