Skip to content

Commit 3646645

Browse files
committed
Adjust comment to point at implementation from which it was derived.
1 parent 0a0de6f commit 3646645

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/StreamWrapper/Foxml.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,19 @@ public function getExternalUrl() {
128128
}
129129

130130
/**
131-
* Returns the local target of the resource within the stream.
131+
* Returns the target of the resource within the stream.
132132
*
133-
* This function should be used in place of calls to realpath() or similar
134-
* functions when attempting to determine the location of a file. While
135-
* functions like realpath() may return the location of a read-only file, this
136-
* method may return a URI or path suitable for writing that is completely
137-
* separate from the URI used for reading.
133+
* XXX: Effectively copypasta from
134+
* \Drupal\Core\StreamWrapper\LocalStream::getTarget(), to facilitate parsing
135+
* of the URI.
138136
*
139137
* @param null|string $uri
140138
* Optional URI.
141139
*
142140
* @return string
143141
* Returns a string representing a location suitable for writing of a file.
142+
*
143+
* @see \Drupal\Core\StreamWrapper\LocalStream::getTarget()
144144
*/
145145
protected function getTarget(?string $uri = NULL) : string {
146146
if (!isset($uri)) {

0 commit comments

Comments
 (0)