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
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
!2653
Issue
#3296952
: Add an interface for addCacheableDependency()
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3296952
: Add an interface for addCacheableDependency()
issue/drupal-3296952:3296952-add-an-interface
into
10.1.x
Overview
0
Commits
2
Pipelines
0
Changes
4
Open
Joachim Noreiko
requested to merge
issue/drupal-3296952:3296952-add-an-interface
into
10.1.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
10.1.x
version 1
82d70ece
2 years ago
10.1.x (base)
and
latest version
latest version
991afe5a
2 commits,
2 years ago
version 1
82d70ece
2 commits,
2 years ago
4 files
+
29
−
35
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/Cache/ObjectWithRefinableCacheabilityInterface.php
0 → 100644
+
24
−
0
Options
<?php
namespace
Drupal\Core\Cache
;
/**
* Allows cacheability metadata to be added for the current runtime.
*/
interface
ObjectWithRefinableCacheabilityInterface
{
/**
* Adds a dependency on an object: merges its cacheability metadata.
*
* @param \Drupal\Core\Cache\CacheableDependencyInterface|object $other_object
* The dependency. If the object implements CacheableDependencyInterface,
* then its cacheability metadata will be used. Otherwise, the passed in
* object must be assumed to be uncacheable, so max-age 0 is set.
*
* @return $this
*
* @see \Drupal\Core\Cache\CacheableMetadata::createFromObject()
*/
public
function
addCacheableDependency
(
$other_object
);
}
Loading