Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
menu_migration
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
0
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
menu_migration
Commits
e2b7b73a
Commit
e2b7b73a
authored
7 months ago
by
Drupal Lady
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3431968
: Add Drupal 11 fixes.
parent
f0356189
Branches
3.0.x
Branches containing commit
Tags
3.0.0
3.0.0-alpha1
Tags containing commit
1 merge request
!10
Automated Project Update Bot fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
menu_migration.info.yml
+1
-1
1 addition, 1 deletion
menu_migration.info.yml
src/Form/SettingsForm.php
+4
-2
4 additions, 2 deletions
src/Form/SettingsForm.php
with
5 additions
and
3 deletions
menu_migration.info.yml
+
1
−
1
View file @
e2b7b73a
name
:
'
Menu
items
migration'
description
:
'
Manages
menu
items
migrations
from
one
Drupal
copy
to
another
one.'
package
:
Development
core_version_requirement
:
^10 || ^11
core_version_requirement
:
^10
.2
|| ^11
type
:
module
configure
:
menu_migration.settings
dependencies
:
...
...
This diff is collapsed.
Click to expand it.
src/Form/SettingsForm.php
+
4
−
2
View file @
e2b7b73a
...
...
@@ -3,6 +3,7 @@
namespace
Drupal\menu_migration\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\File\FileSystemInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
...
...
@@ -30,8 +31,8 @@ class SettingsForm extends ConfigFormBase {
* @param \Drupal\Core\File\FileSystemInterface $fileSystem
* The file system service.
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
FileSystemInterface
$fileSystem
)
{
parent
::
__construct
(
$config_factory
);
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
TypedConfigManagerInterface
$typedConfigManager
,
FileSystemInterface
$fileSystem
)
{
parent
::
__construct
(
$config_factory
,
$typedConfigManager
);
$this
->
fileSystem
=
$fileSystem
;
}
...
...
@@ -41,6 +42,7 @@ class SettingsForm extends ConfigFormBase {
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.typed'
),
$container
->
get
(
'file_system'
),
);
}
...
...
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