Skip to content
Snippets Groups Projects
Commit 944a7967 authored by catch's avatar catch
Browse files

Issue #2664882 by chx: RedirectDestinationInterface::get is factually wrong

parent 64ad4081
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -34,7 +34,13 @@ interface RedirectDestinationInterface {
public function getAsArray();
/**
* Gets the destination as URL.
* Gets the destination as a path.
*
* To convert to a URL suitable for
* \Symfony\Component\HttpFoundation\RedirectResponse::__construct() use
* @code
* \Drupal\Core\Url::fromUserInput(\Drupal::destination()->get())->setAbsolute()->toString()
* @endcode
*
* @return string
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment