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
LocalAwareRedirectResponseTrait trait core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php Provides a trait which ensures that a URL is safe to redirect to.
LocalAwareRedirectResponseTrait.php file core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php
LocalAwareRedirectResponseTrait::$requestContext property core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php The request context.
LocalAwareRedirectResponseTrait::getRequestContext function core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php Returns the request context.
LocalAwareRedirectResponseTrait::isLocal function core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php Determines whether a path is local.
LocalAwareRedirectResponseTrait::setRequestContext function core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php Sets the request context.
LocalRedirectResponse class core/lib/Drupal/Core/Routing/LocalRedirectResponse.php Provides a redirect response which cannot redirect to an external URL.
LocalRedirectResponse.php file core/lib/Drupal/Core/Routing/LocalRedirectResponse.php
MediaUiFunctionalTest::testMediaCreateRedirect function core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php Tests the redirect URL after creating a media item.
MenuLinkAdd::$redirectDestination property core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php The redirect destination.
MenuLinkContentDeleteForm::getRedirectUrl function core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php Returns the URL where the user should be redirected after deletion.
MenuLinkListBuilder::$redirectDestination property core/modules/menu_link_content/src/MenuLinkListBuilder.php The redirect destination.
NavigationSectionStorage::getRedirectUrl function core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php Gets the URL used when redirecting away from the Layout Builder UI.
NodeTranslationRedirectTest class core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php Tests node translation redirects.
NodeTranslationRedirectTest class core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php Tests node translation redirects.
NodeTranslationRedirectTest.php file core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php
NodeTranslationRedirectTest.php file core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php
NodeTranslationRedirectTest::$modules property core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php Modules to install.
NodeTranslationRedirectTest::$modules property core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php Modules to install.
NodeTranslationRedirectTest::setUp function core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php
NodeTranslationRedirectTest::setUp function core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php
NodeTranslationRedirectTest::testNodeTranslationRedirect function core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php Tests that not found node translations are redirected.
NodeTranslationRedirectTest::testNodeTranslationRedirect function core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php Tests that not found node translations are redirected.
OverridesSectionStorage::getRedirectUrl function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Gets the URL used when redirecting away from the Layout Builder UI.
PageCacheTest::testCacheabilityOfRedirectResponses function core/modules/page_cache/tests/src/Functional/PageCacheTest.php Tests that the Cache-Control header is added by FinishResponseSubscriber.
PathChangedHelper::redirect function core/lib/Drupal/Core/Routing/PathChangedHelper.php Returns a redirect to the new path.
ProcessingTest::testBatchRedirectFinishedCallback function core/modules/system/tests/src/Functional/Batch/ProcessingTest.php Tests batches that redirect in the batch finished callback.
RedirectAjaxTest class core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php Tests that the redirects work with Ajax enabled views.
RedirectAjaxTest.php file core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php
RedirectAjaxTest::$defaultTheme property core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php The theme to install as the default for testing.
RedirectAjaxTest::$modules property core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php Modules to install.
RedirectAjaxTest::setUp function core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php
RedirectAjaxTest::testRedirectWithAjax function core/modules/views/tests/src/FunctionalJavascript/RedirectAjaxTest.php Ensures that redirects work with ajax.
RedirectBlockForm class core/modules/system/tests/modules/form_test/src/Form/RedirectBlockForm.php Builds a simple form that redirects on submit.
RedirectBlockForm.php file core/modules/system/tests/modules/form_test/src/Form/RedirectBlockForm.php
RedirectBlockForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/RedirectBlockForm.php Form constructor.
RedirectBlockForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/RedirectBlockForm.php Returns a unique string identifying the form.
RedirectBlockForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/RedirectBlockForm.php Form submission handler.
RedirectCommand class core/lib/Drupal/Core/Ajax/RedirectCommand.php Defines an AJAX command to set the window.location, loading that URL.
RedirectCommand.php file core/lib/Drupal/Core/Ajax/RedirectCommand.php
RedirectCommand::$url property core/lib/Drupal/Core/Ajax/RedirectCommand.php The URL that will be loaded into window.location.
RedirectCommand::render function core/lib/Drupal/Core/Ajax/RedirectCommand.php Implements \Drupal\Core\Ajax\CommandInterface:render().
RedirectCommand::__construct function core/lib/Drupal/Core/Ajax/RedirectCommand.php Constructs an RedirectCommand object.
RedirectDestination class core/lib/Drupal/Core/Routing/RedirectDestination.php Provides helpers for redirect destinations.
RedirectDestination.php file core/lib/Drupal/Core/Routing/RedirectDestination.php
RedirectDestination::$destination property core/lib/Drupal/Core/Routing/RedirectDestination.php The destination used by the current request.
RedirectDestination::$requestStack property core/lib/Drupal/Core/Routing/RedirectDestination.php The request stack.
RedirectDestination::$urlGenerator property core/lib/Drupal/Core/Routing/RedirectDestination.php The URL generator.
RedirectDestination::get function core/lib/Drupal/Core/Routing/RedirectDestination.php Gets the destination as a path.
RedirectDestination::getAsArray function core/lib/Drupal/Core/Routing/RedirectDestination.php Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url.

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