function _responsive_image_image_style_url

Wrapper around image_style_url() so we can return an empty image.

Deprecated

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::getImageStyleUrl() instead.

See also

https://www.drupal.org/node/3548329

File

core/modules/responsive_image/responsive_image.module, line 265

Code

function _responsive_image_image_style_url($style_name, $path) {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \\Drupal\\responsive_image\\ResponsiveImageBuilder::getImageStyleUrl() instead. See https://www.drupal.org/node/3548329', E_USER_DEPRECATED);
  return \Drupal::service(ResponsiveImageBuilder::class)->getImageStyleUrl($style_name, $path);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.