Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
1aecd17b
Commit
1aecd17b
authored
2 months ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3506427
by eduardo morales alberti: Remove responsive_image.ajax from hook
parent
309a2423
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2964
Issue #2865710 : Dependencies from only one instance of a widget are used in display modes
,
!1022
3132456: Fix issue where views instances are emptied before an ajax request is complete
Pipeline
#426737
passed with warnings
2 months ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#426749
Pipeline: drupal
#426745
Pipeline: drupal
#426738
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/responsive_image/src/Hook/ResponsiveImageHooks.php
+0
-12
0 additions, 12 deletions
...odules/responsive_image/src/Hook/ResponsiveImageHooks.php
with
0 additions
and
12 deletions
core/modules/responsive_image/src/Hook/ResponsiveImageHooks.php
+
0
−
12
View file @
1aecd17b
...
@@ -96,16 +96,4 @@ public function theme() : array {
...
@@ -96,16 +96,4 @@ public function theme() : array {
];
];
}
}
/**
* 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'
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment