Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3496087
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3496087
Commits
93c65749
Verified
Commit
93c65749
authored
8 months ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3454212
by nathankg, joachim: Update mentions of
#2225961
in comments
(cherry picked from commit
d246c433
)
parent
2afadf48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Entity/EntityFieldManager.php
+5
-5
5 additions, 5 deletions
core/lib/Drupal/Core/Entity/EntityFieldManager.php
core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
+1
-1
1 addition, 1 deletion
...tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
with
6 additions
and
6 deletions
core/lib/Drupal/Core/Entity/EntityFieldManager.php
+
5
−
5
View file @
93c65749
...
...
@@ -277,7 +277,7 @@ protected function buildBaseFieldDefinitions($entity_type_id) {
$provider
=
$entity_type
->
getProvider
();
foreach
(
$base_field_definitions
as
$definition
)
{
// @todo Remove this check once FieldDefinitionInterface exposes a proper
// provider setter. See https://www.drupal.org/node/2
225961
.
// provider setter. See https://www.drupal.org/node/2
346329
.
if
(
$definition
instanceof
BaseFieldDefinition
)
{
$definition
->
setProvider
(
$provider
);
}
...
...
@@ -292,7 +292,7 @@ function (callable $hook, string $module) use (&$base_field_definitions, $entity
// defining the field.
foreach
(
$module_definitions
as
$field_name
=>
$definition
)
{
// @todo Remove this check once FieldDefinitionInterface exposes a
// proper provider setter. See https://www.drupal.org/node/2
225961
.
// proper provider setter. See https://www.drupal.org/node/2
346329
.
if
(
$definition
instanceof
BaseFieldDefinition
&&
$definition
->
getProvider
()
==
NULL
)
{
$definition
->
setProvider
(
$module
);
}
...
...
@@ -402,7 +402,7 @@ protected function buildBundleFieldDefinitions($entity_type_id, $bundle, array $
$provider
=
$entity_type
->
getProvider
();
foreach
(
$bundle_field_definitions
as
$definition
)
{
// @todo Remove this check once FieldDefinitionInterface exposes a proper
// provider setter. See https://www.drupal.org/node/2
225961
.
// provider setter. See https://www.drupal.org/node/2
346329
.
if
(
$definition
instanceof
BaseFieldDefinition
)
{
$definition
->
setProvider
(
$provider
);
}
...
...
@@ -417,7 +417,7 @@ function (callable $hook, string $module) use (&$bundle_field_definitions, $enti
// defining the field.
foreach
(
$module_definitions
as
$field_name
=>
$definition
)
{
// @todo Remove this check once FieldDefinitionInterface exposes a
// proper provider setter. See https://www.drupal.org/node/2
225961
.
// proper provider setter. See https://www.drupal.org/node/2
346329
.
if
(
$definition
instanceof
BaseFieldDefinition
)
{
$definition
->
setProvider
(
$module
);
}
...
...
@@ -594,7 +594,7 @@ function (callable $hook, string $module) use (&$field_definitions, $entity_type
// defining the field.
foreach
(
$module_definitions
as
$field_name
=>
$definition
)
{
// @todo Remove this check once FieldDefinitionInterface exposes a
// proper provider setter. See https://www.drupal.org/node/2
225961
.
// proper provider setter. See https://www.drupal.org/node/2
346329
.
if
(
$definition
instanceof
BaseFieldDefinition
)
{
$definition
->
setProvider
(
$module
);
$definition
->
setName
(
$field_name
);
...
...
This diff is collapsed.
Click to expand it.
core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
+
1
−
1
View file @
93c65749
...
...
@@ -548,7 +548,7 @@ public function testGetFieldDefinitionsProvider() {
$module
=
'entity_field_manager_test_module'
;
// @todo Mock FieldDefinitionInterface once it exposes a proper provider
// setter. See https://www.drupal.org/node/2
225961
.
// setter. See https://www.drupal.org/node/2
346329
.
$field_definition
=
$this
->
prophesize
(
BaseFieldDefinition
::
class
);
// We expect two calls as the field definition will be returned from both
...
...
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