Skip to content
Snippets Groups Projects

Issue #3218514: Deprecate passing path (instead of true URI) to ImageStyleInterface::buildUri($uri)

Open Issue #3218514: Deprecate passing path (instead of true URI) to ImageStyleInterface::buildUri($uri)
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -175,6 +175,9 @@ protected static function replaceImageStyle(ImageStyleInterface $style) {
@@ -175,6 +175,9 @@ protected static function replaceImageStyle(ImageStyleInterface $style) {
*/
*/
public function buildUri($uri) {
public function buildUri($uri) {
$source_scheme = $scheme = StreamWrapperManager::getScheme($uri);
$source_scheme = $scheme = StreamWrapperManager::getScheme($uri);
 
if (!$source_scheme) {
 
@trigger_error('Passing a path argument is deprecated in drupal:9.3.0 and is removed in drupal:10.0.0. Pass a valid URI instead. See https://www.drupal.org/node/3218514', E_USER_DEPRECATED);
 
}
$default_scheme = $this->fileDefaultScheme();
$default_scheme = $this->fileDefaultScheme();
if ($source_scheme) {
if ($source_scheme) {
Loading