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
!11395
Issue
#3504114
: Test to demo error
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3504114
: Test to demo error
issue/drupal-3504114:3504114-cache-redirect-error
into
11.x
Overview
4
Commits
9
Pipelines
10
Changes
5
2 unresolved threads
Hide all comments
Open
Eric Smith
requested to merge
issue/drupal-3504114:3504114-cache-redirect-error
into
11.x
1 month ago
Overview
4
Commits
9
Pipelines
10
Changes
5
2 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Compare
11.x
version 9
a993579b
1 week ago
version 8
e4be93b0
1 month ago
version 7
b341bb10
1 month ago
version 6
bd40e4e2
1 month ago
version 5
77e0315a
1 month ago
version 4
446106f6
1 month ago
version 3
3198f438
1 month ago
version 2
52b0b498
1 month ago
version 1
925ab2c9
1 month ago
11.x (HEAD)
and
latest version
latest version
c39d91c0
9 commits,
1 week ago
version 9
a993579b
8 commits,
1 week ago
version 8
e4be93b0
7 commits,
1 month ago
version 7
b341bb10
6 commits,
1 month ago
version 6
bd40e4e2
5 commits,
1 month ago
version 5
77e0315a
5 commits,
1 month ago
version 4
446106f6
4 commits,
1 month ago
version 3
3198f438
3 commits,
1 month ago
version 2
52b0b498
2 commits,
1 month ago
version 1
925ab2c9
2 commits,
1 month ago
5 files
+
225
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Cache/Context/PseudoCacheContext.php
0 → 100644
+
43
−
0
Options
<?php
namespace
Drupal\Core\Cache\Context
;
use
Drupal\Core\Cache\CacheableMetadata
;
/**
* Defines the PseudoCacheContext service.
*
* This cache context will always return the value of '1', but is not intended
* to be added manually. Instead, users are expected to use the associated
* helper class \Drupal\Core\Cache\DependencyVariation instead.
*
* Cache context ID: 'pseudo'.
*
* @see \Drupal\Core\Cache\DependencyVariation
*/
class
PseudoCacheContext
implements
CalculatedCacheContextInterface
{
const
ID
=
'pseudo'
;
/**
* {@inheritdoc}
*/
public
static
function
getLabel
()
{
return
t
(
'Pseudo'
);
}
/**
* {@inheritdoc}
*/
public
function
getContext
(
$parameter
=
NULL
)
{
return
1
;
}
/**
* {@inheritdoc}
*/
public
function
getCacheableMetadata
(
$parameter
=
NULL
)
{
return
new
CacheableMetadata
();
}
}
Loading