protected function ImageStyle::fileUriScheme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::fileUriScheme()
Provides a wrapper for file_uri_scheme() to allow unit testing.
Returns the scheme of a URI (e.g. a stream).
@todo: Remove when https://www.drupal.org/node/2050759 is in.
Parameters
string $uri: A stream, referenced as "scheme://target" or "data:target".
Return value
string A string containing the name of the scheme, or FALSE if none. For example, the URI "public://example.txt" would return "public".
See also
1 call to ImageStyle::fileUriScheme()
- ImageStyle::buildUri in core/
modules/ image/ src/ Entity/ ImageStyle.php - Returns the URI of this image when using this style.
File
- core/
modules/ image/ src/ Entity/ ImageStyle.php, line 472 - Contains \Drupal\image\Entity\ImageStyle.
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\EntityCode
protected function fileUriScheme($uri) {
return file_uri_scheme($uri);
}