Commit 944a7967 authored by catch's avatar catch
Browse files

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

parent 64ad4081
...@@ -34,7 +34,13 @@ interface RedirectDestinationInterface { ...@@ -34,7 +34,13 @@ interface RedirectDestinationInterface {
public function getAsArray(); 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 * @return string
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment