_locale_translation_file_is_remote($uri)
Determine if a file is a remote file.
string $uri: The URI or URI pattern of the file.
bool TRUE if the $uri is a remote file.
function _locale_translation_file_is_remote($uri) { $scheme = file_uri_scheme($uri); if ($scheme) { return !drupal_realpath($scheme . '://'); } return FALSE; }
© 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!modules!locale!locale.translation.inc/function/_locale_translation_file_is_remote/8.1.x