public FileSystemInterface::realpath($uri)
Resolves the absolute filepath of a local URI or filepath.
The use of this method is discouraged, because it does not work for remote URIs. Except in rare cases, URIs should not be manually resolved.
Only use this function if you know that the stream wrapper in the URI uses the local file system, and you need to pass an absolute path to a function that is incompatible with stream URIs.
string $uri: A stream wrapper URI or a filepath, possibly including one or more symbolic links.
string|false The absolute local filepath (with no symbolic links) or FALSE on failure.
\Drupal\Core\StreamWrapper\StreamWrapperInterface::realpath()
http://php.net/manual/function.realpath.php
public function realpath($uri);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!File!FileSystemInterface.php/function/FileSystemInterface::realpath/8.1.x