Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
picture_everywhere
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
1
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
picture_everywhere
Commits
a8ddc1cf
Commit
a8ddc1cf
authored
7 months ago
by
Ben Voynick
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3433923
by bvoynick: Drupal 11 compatibility
parent
37cd278f
No related branches found
Branches containing commit
Tags
1.0.1
1 merge request
!5
Issue #3433923 by bvoynick: Drupal 11 compatibility
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
picture_everywhere.info.yml
+1
-1
1 addition, 1 deletion
picture_everywhere.info.yml
src/Form/SettingsForm.php
+9
-1
9 additions, 1 deletion
src/Form/SettingsForm.php
with
10 additions
and
2 deletions
picture_everywhere.info.yml
+
1
−
1
View file @
a8ddc1cf
name
:
Picture Everywhere
type
:
module
description
:
Standardizes Drupal image rendering to always use a <picture> element.
core_version_requirement
:
^9.4 || ^10
core_version_requirement
:
^9.4 || ^10
|| ^11
php
:
8.0
package
:
Media
configure
:
picture_everywhere.settings
...
...
This diff is collapsed.
Click to expand it.
src/Form/SettingsForm.php
+
9
−
1
View file @
a8ddc1cf
...
...
@@ -42,7 +42,15 @@ class SettingsForm extends ConfigFormBase {
ModuleHandlerInterface
$module_handler
,
ThemeHandlerInterface
$theme_handler
,
)
{
parent
::
__construct
(
$config_factory
);
// TODO: once this module requires a minimum of Drupal 10.2 or later, this
// conditional can be removed.
if
(
version_compare
(
\Drupal
::
VERSION
,
'10.2'
,
'>='
))
{
$typed_config_manager
=
\Drupal
::
service
(
'config.typed'
);
parent
::
__construct
(
$config_factory
,
$typed_config_manager
);
}
else
{
parent
::
__construct
(
$config_factory
);
}
$this
->
moduleHandler
=
$module_handler
;
$this
->
themeHandler
=
$theme_handler
;
...
...
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