Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ajax_loader
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
ajax_loader
Commits
5eddd1c0
Commit
5eddd1c0
authored
6 months ago
by
Matthias Vogel
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3428826
: Drupal 11 compatibility changed AjaxLoaderSettingsForm constructor
parent
fc4100fe
No related branches found
No related tags found
1 merge request
!9
Issue #3428826: Drupal 11 compatibility changed AjaxLoaderSettingsForm constructor
Pipeline
#304423
passed with warnings
6 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/AjaxLoaderSettingsForm.php
+4
-2
4 additions, 2 deletions
src/Form/AjaxLoaderSettingsForm.php
with
4 additions
and
2 deletions
src/Form/AjaxLoaderSettingsForm.php
+
4
−
2
View file @
5eddd1c0
...
@@ -4,6 +4,7 @@ namespace Drupal\ajax_loader\Form;
...
@@ -4,6 +4,7 @@ namespace Drupal\ajax_loader\Form;
use
Drupal\ajax_loader
\ThrobberManagerInterface
;
use
Drupal\ajax_loader
\ThrobberManagerInterface
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
...
@@ -20,8 +21,8 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
...
@@ -20,8 +21,8 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
/**
/**
* Function to construct.
* Function to construct.
*/
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
ThrobberManagerInterface
$throbber_manager
)
{
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
TypedConfigManagerInterface
$typedConfigManager
,
ThrobberManagerInterface
$throbber_manager
)
{
parent
::
__construct
(
$config_factory
);
parent
::
__construct
(
$config_factory
,
$typedConfigManager
);
$this
->
throbberManager
=
$throbber_manager
;
$this
->
throbberManager
=
$throbber_manager
;
}
}
...
@@ -37,6 +38,7 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
...
@@ -37,6 +38,7 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
public
static
function
create
(
ContainerInterface
$container
)
{
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.typed'
),
$container
->
get
(
'ajax_loader.throbber_manager'
)
$container
->
get
(
'ajax_loader.throbber_manager'
)
);
);
}
}
...
...
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