File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 )) {
You can’t perform that action at this time.
0 commit comments