Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ik_modals
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
ik_modals
Commits
d2d9c2ea
Commit
d2d9c2ea
authored
5 months ago
by
Mohammad Anwar Siddiqui
Committed by
Rosemary Reilman
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3474145
: Configuration page issue with Drupal 11
parent
eac064c7
No related branches found
Branches containing commit
Tags
1.0.0-beta4
Tags containing commit
1 merge request
!3
Issue-3474145: Fixed configuration page issue for Drupal 11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/ModalModuleSettingsForm.php
+4
-32
4 additions, 32 deletions
src/Form/ModalModuleSettingsForm.php
with
4 additions
and
32 deletions
src/Form/ModalModuleSettingsForm.php
+
4
−
32
View file @
d2d9c2ea
...
...
@@ -2,12 +2,9 @@
namespace
Drupal\ik_modals\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Messenger\MessengerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\HttpFoundation\RequestStack
;
/**
* Class ModalModuleSettingsForm.
...
...
@@ -16,14 +13,6 @@ use Symfony\Component\HttpFoundation\RequestStack;
*/
class
ModalModuleSettingsForm
extends
ConfigFormBase
{
/**
* Drupal\Core\Config\ConfigFactoryInterface.
*
* @var \Drupal\Core\Config\ConfigFactoryInterface
* Config Factory Interface.
*/
protected
$configFactory
;
/**
* Drupal\Core\Messenger\MessengerInterface.
*
...
...
@@ -39,31 +28,14 @@ class ModalModuleSettingsForm extends ConfigFormBase {
*/
protected
$requestStack
;
/**
* ModalModuleSettingsForm constructor.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
* Drupal\Core\Config\ConfigFactoryInterface.
* @param \Drupal\Core\Messenger\MessengerInterface $messenger
* Drupal\Core\Messenger\MessengerInterface.
* @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* Symfony\Component\HttpFoundation\RequestStack.
*/
public
function
__construct
(
ConfigFactoryInterface
$configFactory
,
MessengerInterface
$messenger
,
RequestStack
$requestStack
)
{
parent
::
__construct
(
$configFactory
);
$this
->
messenger
=
$messenger
;
$this
->
requestStack
=
$requestStack
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'messenger'
),
$container
->
get
(
'request_stack'
)
);
$instance
=
parent
::
create
(
$container
);
$instance
->
messenger
=
$container
->
get
(
'messenger'
);
$instance
->
requestStack
=
$container
->
get
(
'request_stack'
);
return
$instance
;
}
/**
...
...
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