Skip to content
Snippets Groups Projects

Issue #3229633: Drupal 9 compatibility fixes

2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 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 = file_uri_target($uri);
$target = \Drupal::service('stream_wrapper_manager')->getTarget($uri);
if ($target) {
$prefixes_pattern = preg_quote(static::IMAGE_STYLE_URI_TARGET_PREFIX, '/');
$pattern = '/^' . $prefixes_pattern . '/';
Loading