From 36466454b583b76242e332c063218dfb3935b2dd Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Mon, 2 Dec 2024 16:59:06 -0400 Subject: [PATCH] Adjust comment to point at implementation from which it was derived. --- src/StreamWrapper/Foxml.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/StreamWrapper/Foxml.php b/src/StreamWrapper/Foxml.php index 26829f7..a7f30af 100644 --- a/src/StreamWrapper/Foxml.php +++ b/src/StreamWrapper/Foxml.php @@ -128,19 +128,19 @@ public function getExternalUrl() { } /** - * Returns the local target of the resource within the stream. + * Returns the target of the resource within the stream. * - * This function should be used in place of calls to realpath() or similar - * functions when attempting to determine the location of a file. While - * functions like realpath() may return the location of a read-only file, this - * method may return a URI or path suitable for writing that is completely - * separate from the URI used for reading. + * XXX: Effectively copypasta from + * \Drupal\Core\StreamWrapper\LocalStream::getTarget(), to facilitate parsing + * of the URI. * * @param null|string $uri * Optional URI. * * @return string * Returns a string representing a location suitable for writing of a file. + * + * @see \Drupal\Core\StreamWrapper\LocalStream::getTarget() */ protected function getTarget(?string $uri = NULL) : string { if (!isset($uri)) {