Skip to content

Commit

Permalink
Adjust comment to point at implementation from which it was derived.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Dec 2, 2024
1 parent 0a0de6f commit 3646645
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/StreamWrapper/Foxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3646645

Please sign in to comment.