Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
7.1k
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
drupal
Merge requests
!2481
Issue
#3252278
: Computed entity reference fields cannot express cacheable metadata
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3252278
: Computed entity reference fields cannot express cacheable metadata
issue/drupal-3252278:3252278-jsonapi--computed
into
11.x
Overview
5
Commits
7
Pipelines
3
Changes
4
Open
Brad Jones
requested to merge
issue/drupal-3252278:3252278-jsonapi--computed
into
11.x
2 years ago
Overview
5
Commits
7
Pipelines
3
Changes
4
Expand
👍
0
👎
0
Merge request reports
Compare
11.x
version 8
99473fc6
7 months ago
version 7
323bb165
2 years ago
version 6
d984b5e7
2 years ago
version 5
4abb03cd
2 years ago
version 4
0f54eb66
2 years ago
version 3
370358d2
2 years ago
version 2
3d6d16a9
2 years ago
version 1
8da934f4
2 years ago
11.x (base)
and
latest version
latest version
99473fc6
7 commits,
7 months ago
version 8
99473fc6
4382 commits,
7 months ago
version 7
323bb165
7 commits,
2 years ago
version 6
d984b5e7
6 commits,
2 years ago
version 5
4abb03cd
5 commits,
2 years ago
version 4
0f54eb66
4 commits,
2 years ago
version 3
370358d2
3 commits,
2 years ago
version 2
3d6d16a9
2 commits,
2 years ago
version 1
8da934f4
1 commit,
2 years ago
4 files
+
51
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Field/EmptyFieldItemListCacheabilityInterface.php
0 → 100644
+
26
−
0
Options
<?php
namespace
Drupal\Core\Field
;
use
Drupal\Core\Cache\CacheableMetadata
;
/**
* Interface for field item lists which have cacheable metadata for empty state.
*
* Field item lists should implement this interface when their being empty
* results from a condition with cacheability distinct from its parent. For
* instance, computed fields may change their value due to entity CRUD events
* orthogonal to the parent entity itself. Non-empty lists would continue to
* yield cacheable metadata (e.g., during serialization) via their items.
*/
interface
EmptyFieldItemListCacheabilityInterface
{
/**
* Get the field item list's cacheable metadata for its empty state.
*
* @return \Drupal\Core\Cache\CacheableMetadata
* Cacheable metadata.
*/
public
function
getEmptyListCacheability
():
CacheableMetadata
;
}
Loading