diff --git a/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php b/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php index ac2612b952f2cfcba7f83223992adcf7e2a68ffd..d68f4c122cea56257a5238d4b31cf8c20a9269d8 100644 --- a/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php +++ b/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php @@ -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 */