Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
custom_elements
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
custom_elements
Merge requests
!80
Fixing CE cache dependency
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixing CE cache dependency
issue/custom_elements-3468371:3468371-old-content-is
into
3.x
Overview
0
Commits
2
Pipelines
4
Changes
3
Merged
Bálint Junkuncz
requested to merge
issue/custom_elements-3468371:3468371-old-content-is
into
3.x
11 months ago
Overview
0
Commits
2
Pipelines
4
Changes
3
Expand
Closes
#3468371
0
0
Merge request reports
Compare
3.x
version 2
cf8c46bd
11 months ago
version 1
450a8a50
11 months ago
3.x (base)
and
latest version
latest version
bee2ea6a
2 commits,
10 months ago
version 2
cf8c46bd
2 commits,
11 months ago
version 1
450a8a50
1 commit,
11 months ago
3 files
+
19
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/Entity/EntityCeDisplay.php
+
15
−
0
Options
@@ -207,6 +207,21 @@ class EntityCeDisplay extends EntityDisplayBase implements EntityCeDisplayInterf
];
}
/**
* {@inheritdoc}
*/
public
function
getCacheTagsToInvalidate
()
{
$tags
=
parent
::
getCacheTagsToInvalidate
();
// $tags is a single tag, ending in the view mode. When using the default
// display to build a specific view mode, also add a tag for that view mode.
$tag
=
current
(
$tags
);
if
(
$this
->
originalMode
!==
'default'
&&
substr
(
$tag
,
-
8
)
===
'.default'
)
{
$tags
[]
=
substr
(
$tag
,
0
,
strlen
(
$tag
)
-
7
)
.
$this
->
originalMode
;
}
return
$tags
;
}
/**
* {@inheritdoc}
*/
Loading