自定义模块中的响应式映像如何重新浮雕到Drupal 9
我将drupal7升级为drupal9 我如何在自定义模块中制作响应式图像 $ banner_img ['groun_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02.jpg'; $ banner_img ['mid_desktop_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02.jpg'; $ banner_img ['ipad_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02730.jpg'; $ banner_img ['mobile_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02560.jpg'; 请帮忙
I upgrade the drupal7 to drupal9
how i can make the responsive image in custom module
$banner_img['large_image'] = $base_url.'/'.$module_path . '/images/flower-02.jpg';
$banner_img['mid_desktop_image'] = $base_url.'/'.$module_path . '/images/flower-02.jpg';
$banner_img['ipad_image'] = $base_url.'/'.$module_path . '/images/flower-02730.jpg';
$banner_img['mobile_image'] = $base_url.'/'.$module_path . '/images/flower-02560.jpg';
please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Drupal 9中,响应式图像的处理方式不同。
您需要响应式图像和断点模块。
请将其视为指南: https:https:// wwwwww .prometsource.com/blog/how-set-responsive-images-drupal-9-0
In drupal 9, responsive images are handled differently.
You need both responsive images and breakpoint modules.
Please see this as a guide: https://www.prometsource.com/blog/how-set-responsive-images-drupal-9-0