Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
block_field-3429007
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
block_field-3429007
Commits
7d89db37
Commit
7d89db37
authored
7 years ago
by
Tassilo Groeper
Committed by
Adam Bramley
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2865189
by tassilogroeper: Deprecated method entityManager
parent
9e726b8e
No related branches found
Branches containing commit
Tags
8.x-1.0-alpha5
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldType/BlockFieldItem.php
+1
-1
1 addition, 1 deletion
src/Plugin/Field/FieldType/BlockFieldItem.php
with
1 addition
and
1 deletion
src/Plugin/Field/FieldType/BlockFieldItem.php
+
1
−
1
View file @
7d89db37
...
...
@@ -173,7 +173,7 @@ class BlockFieldItem extends FieldItemBase implements BlockFieldItemInterface {
// Don't return broken block content instances.
if
(
$plugin_definition
[
'id'
]
==
'block_content'
)
{
$uuid
=
$block_instance
->
getDerivativeId
();
if
(
!
\Drupal
::
entityTypeManager
(
)
->
loadEntityByUuid
(
'block_content'
,
$uuid
))
{
if
(
!
\Drupal
::
service
(
'entity.repository'
)
->
loadEntityByUuid
(
'block_content'
,
$uuid
))
{
return
NULL
;
}
}
...
...
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