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

8.1.x
Nathaniel Catchpole 2016-02-10 13:09:26 +09:00
parent 64ad40811b
commit 944a7967f6
1 changed files with 7 additions and 1 deletions

View File

@ -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
*/