Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_reference_integrity
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_reference_integrity
Merge requests
!11
Add .gitlab-ci.yml to run tests and linting.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Add .gitlab-ci.yml to run tests and linting.
issue/entity_reference_integrity-3509453:3509453-gitlab-ci
into
8.x-1.x
Overview
0
Commits
15
Pipelines
10
Changes
11
Open
Michael Stenta
requested to merge
issue/entity_reference_integrity-3509453:3509453-gitlab-ci
into
8.x-1.x
2 months ago
Overview
0
Commits
15
Pipelines
10
Changes
11
Expand
Closes
#3509453
0
0
Merge request reports
Compare
8.x-1.x
version 10
3c7027f9
2 months ago
version 9
1e284925
2 months ago
version 8
843d58d8
2 months ago
version 7
f30e7f0a
2 months ago
version 6
f30e7f0a
2 months ago
version 5
91d3bb48
2 months ago
version 4
11e184fc
2 months ago
version 3
9ebd13f4
2 months ago
version 2
59e0b426
2 months ago
version 1
9c300de9
2 months ago
8.x-1.x (HEAD)
and
latest version
latest version
f6d45e8c
15 commits,
2 months ago
version 10
3c7027f9
14 commits,
2 months ago
version 9
1e284925
14 commits,
2 months ago
version 8
843d58d8
13 commits,
2 months ago
version 7
f30e7f0a
13 commits,
2 months ago
version 6
f30e7f0a
14 commits,
2 months ago
version 5
91d3bb48
13 commits,
2 months ago
version 4
11e184fc
10 commits,
2 months ago
version 3
9ebd13f4
9 commits,
2 months ago
version 2
59e0b426
2 commits,
2 months ago
version 1
9c300de9
1 commit,
2 months ago
11 files
+
130
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
modules/entity_reference_integrity_enforce/src/Form/SettingsForm.php
+
14
−
4
Options
@@ -3,6 +3,8 @@
namespace
Drupal\entity_reference_integrity_enforce\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
@@ -21,10 +23,17 @@ class SettingsForm extends ConfigFormBase {
/**
* Create a SettingsForm.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* Defines the configuration object factory.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager
* The typed config manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager service.
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
$entity_type_definitions
)
{
parent
::
__construct
(
$config_factory
);
$this
->
entityTypeDefinitions
=
$entity_type_
d
efinitions
;
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
TypedConfigManagerInterface
$typed_config_manager
,
EntityTypeManagerInterface
$entity_type_manager
)
{
parent
::
__construct
(
$config_factory
,
$typed_config_manager
);
$this
->
entityTypeDefinitions
=
$entity_type_
manager
->
getD
efinitions
()
;
}
/**
@@ -33,7 +42,8 @@ class SettingsForm extends ConfigFormBase {
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'entity_type.manager'
)
->
getDefinitions
()
$container
->
get
(
'config.typed'
),
$container
->
get
(
'entity_type.manager'
),
);
}
Loading