Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
entity_notify
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
entity_notify
Merge requests
!2
Issue
#3500900
by ivnish: Fix Drupal 11 compatibility
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3500900
by ivnish: Fix Drupal 11 compatibility
issue/entity_notify-3500900:3500900-fix-drupal-11
into
1.1.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Andrei Ivnitskii
requested to merge
issue/entity_notify-3500900:3500900-fix-drupal-11
into
1.1.x
3 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Related to
#3500900
0
0
Merge request reports
Compare
1.1.x
1.1.x (base)
and
latest version
latest version
6da49951
1 commit,
3 months ago
1 file
+
16
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Form/EntityNotifySettingsForm.php
+
16
−
3
Options
@@ -3,6 +3,7 @@
namespace
Drupal\entity_notify\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\Entity\ContentEntityTypeInterface
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
@@ -36,10 +37,21 @@ class EntityNotifySettingsForm extends ConfigFormBase {
}
/**
* {@inheritdoc}
* Constructs an EntityNotifySettingsForm object.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager
* The typed config manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
EntityTypeManagerInterface
$entity_type_manager
)
{
parent
::
__construct
(
$config_factory
);
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
TypedConfigManagerInterface
$typedConfigManager
,
EntityTypeManagerInterface
$entity_type_manager
,
)
{
parent
::
__construct
(
$config_factory
,
$typedConfigManager
);
$this
->
entityTypeManager
=
$entity_type_manager
;
}
@@ -49,6 +61,7 @@ class EntityNotifySettingsForm extends ConfigFormBase {
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.typed'
),
$container
->
get
(
'entity_type.manager'
),
);
}
Loading