Skip to content
Snippets Groups Projects

3229633: revert deprecation function

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -99,7 +99,7 @@ class FileVersion implements FileVersionInterface {
* TRUE if is the uri is an image style uri, FALSE in otherwise.
*/
private function isImageStyleUri($uri) {
$target = \Drupal::service('stream_wrapper_manager')->getTarget($uri);
$target = file_uri_target($uri);
if ($target) {
$prefixes_pattern = preg_quote(static::IMAGE_STYLE_URI_TARGET_PREFIX, '/');
$pattern = '/^' . $prefixes_pattern . '/';
Loading