Skip to content
Snippets Groups Projects
Commit d4ea873c authored by Ben Harris's avatar Ben Harris Committed by Benjamin Melançon
Browse files

Issue #3214829 by Glottus, Christopher Riley, mlncn: No form state passed?

parent e767b640
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ namespace Drupal\customerror\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpFoundation\RedirectResponse;
......@@ -92,7 +93,7 @@ class CustomErrorController extends ControllerBase {
// And that destination isn't going to do anything for us at that point.
// $path = $this->getRequest()->getPathInfo();
// $url = \Drupal\Core\Url::fromUserInput($path);
// $form_state = new \Drupal\Core\Form\FormState();
$form_state = new \Drupal\Core\Form\FormState();
// $form_state->setRedirectUrl($url);
// Instead of the above code, we have to do the same thing in ... ah,
// that's the deal, we have to do it in the submit handler or else it's
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment