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
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
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.
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::$redirectResponseSubscriber property core/lib/Drupal/Core/Form/FormSubmitter.php The redirect response subscriber.
FormSubmitter::redirectForm function core/lib/Drupal/Core/Form/FormSubmitter.php
FormSubmitterInterface::redirectForm function core/lib/Drupal/Core/Form/FormSubmitterInterface.php Redirects the user to a URL after a form has been processed.
FormSubmitterTest::$redirectResponseSubscriber property core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
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.
FormTestBase::$redirectResponseSubscriber property core/tests/Drupal/Tests/Core/Form/FormTestBase.php
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.
InstallerRedirectTraitMockableClass class core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php A class using the InstallerRedirectTrait for mocking purposes.

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