Remove responsive_image.ajax from hook

Created on 13 February 2025, about 2 months ago

Problem/Motivation

The library responsive_image.ajax has been deleted https://www.drupal.org/node/3292687
But responsive_image still loads it:
https://git.drupalcode.org/project/drupal/-/blob/e753ab59ba2c14451e4f012...

  /**
   * Implements hook_library_info_alter().
   *
   * Load responsive_image.js whenever ajax is added.
   */
  #[Hook('library_info_alter')]
  public function libraryInfoAlter(array &$libraries, $module): void {
    if ($module === 'core' && isset($libraries['drupal.ajax'])) {
      $libraries['drupal.ajax']['dependencies'][] = 'responsive_image/ajax';
    }
  }


Proposed resolution

Remove hook

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

responsive_image.module

Created by

🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024