public function ImageStyle::fileIsUriRemote in Remote Stream Wrapper 8
Provides a wrapper for file_is_uri_remote() to allow unit testing.
@todo: Convert file_is_uri_remote() into a proper injectable service.
Parameters
string $uri: A file URI.
Return value
bool TRUE if the file is remote, or FALSE otherwise.
1 call to ImageStyle::fileIsUriRemote()
- ImageStyle::buildUri in src/
Entity/ ImageStyle.php - Returns the URI of this image when using this style.
File
- src/
Entity/ ImageStyle.php, line 40
Class
- ImageStyle
- Overrides the ImageStyle entity class to support remote image derivatives.
Namespace
Drupal\remote_stream_wrapper\EntityCode
public function fileIsUriRemote($uri) {
return file_is_uri_remote($uri);
}