Search for redirect

  1. Search 7.x for redirect
  2. Search 8.9.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
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.
FormStateDecoratorBase::disableRedirect function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Prevents the form from redirecting.
FormStateDecoratorBase::getRedirect function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Gets the value to use for redirecting after the form has been executed.
FormStateDecoratorBase::isRedirectDisabled function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Determines if redirecting has been prevented.
FormStateDecoratorBase::setRedirect function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Sets the redirect for the form.
FormStateDecoratorBase::setRedirectUrl function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Sets the redirect URL for the form.
FormStateDecoratorBaseTest::providerGetRedirect function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Provides data to self::testGetRedirect().
FormStateDecoratorBaseTest::testDisableRedirect function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::disableRedirect
FormStateDecoratorBaseTest::testGetRedirect function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::getRedirect
FormStateDecoratorBaseTest::testIsRedirectDisabled function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::isRedirectDisabled
FormStateDecoratorBaseTest::testSetRedirect function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setRedirect
FormStateDecoratorBaseTest::testSetRedirectUrl function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setRedirectUrl
FormStateInterface::disableRedirect function core/lib/Drupal/Core/Form/FormStateInterface.php Prevents the form from redirecting.
FormStateInterface::getRedirect function core/lib/Drupal/Core/Form/FormStateInterface.php Gets the value to use for redirecting after the form has been executed.
FormStateInterface::isRedirectDisabled function core/lib/Drupal/Core/Form/FormStateInterface.php Determines if redirecting has been prevented.
FormStateInterface::setRedirect function core/lib/Drupal/Core/Form/FormStateInterface.php Sets the redirect for the form.
FormStateInterface::setRedirectUrl function core/lib/Drupal/Core/Form/FormStateInterface.php Sets the redirect URL for the form.
FormStateTest::providerTestGetRedirect function core/tests/Drupal/Tests/Core/Form/FormStateTest.php Provides test data for testing the getRedirect() method.
FormStateTest::testGetRedirect function core/tests/Drupal/Tests/Core/Form/FormStateTest.php Tests the getRedirect() method.
FormSubmitter::redirectForm function core/lib/Drupal/Core/Form/FormSubmitter.php Redirects the user to a URL after a form has been processed.
FormSubmitterInterface::redirectForm function core/lib/Drupal/Core/Form/FormSubmitterInterface.php Redirects the user to a URL after a form has been processed.
FormSubmitterTest::providerTestRedirectWithUrl function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Provides test data for testing the redirectForm() method with a route name.
FormSubmitterTest::testHandleFormSubmissionNoRedirect function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php @covers ::doSubmitForm
FormSubmitterTest::testRedirectWithNull function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method when the redirect is NULL.
FormSubmitterTest::testRedirectWithoutResult function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method when no redirect is expected.
FormSubmitterTest::testRedirectWithResponseObject function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests the redirectForm() method with a response object.
FormSubmitterTest::testRedirectWithUrl function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests redirectForm() when a redirect is a Url object.
FormTestRedirectForm class core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php Form builder to detect form redirect.
FormTestRedirectForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php
FormTestRedirectForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php Form constructor.
FormTestRedirectForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php Returns a unique string identifying the form.
FormTestRedirectForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php Form submission handler.
InstallerRedirectTrait trait core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php Provides methods for checking if Drupal is already installed.
InstallerRedirectTrait.php file core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php
InstallerRedirectTrait::isCli function core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php Returns whether the current PHP process runs on CLI.
InstallerRedirectTrait::shouldRedirectToInstaller function core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php Determines if an exception handler should redirect to the installer.
InstallerRedirectTraitTest class core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php @coversDefaultClass \Drupal\Core\Installer\InstallerRedirectTrait
InstallerRedirectTraitTest.php file core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php
InstallerRedirectTraitTest::providerShouldRedirectToInstaller function core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php Data provider for testShouldRedirectToInstaller().
InstallerRedirectTraitTest::testShouldRedirectToInstaller function core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php @covers ::shouldRedirectToInstaller
@dataProvider providerShouldRedirectToInstaller
install_full_redirect_url function core/includes/install.core.inc Returns the complete URL redirected to during an installation request.
install_redirect_url function core/includes/install.core.inc Returns the URL that should be redirected to during an installation request.
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.

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