Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
language_cookie
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
language_cookie
Merge requests
!13
Draft: 3512070: Initial commit to support Drupal internal page cache.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Draft: 3512070: Initial commit to support Drupal internal page cache.
issue/language_cookie-3512070:3512070-support-drupals-internal
into
2.0.x
Overview
0
Commits
1
Pipelines
1
Changes
3
Open
Draft: 3512070: Initial commit to support Drupal internal page cache.
Jason Want
requested to merge
issue/language_cookie-3512070:3512070-support-drupals-internal
into
2.0.x
5 months ago
Overview
0
Commits
1
Pipelines
1
Changes
3
0
0
Merge request reports
Compare
2.0.x
2.0.x (HEAD)
and
latest version
latest version
3c4eb117
1 commit,
5 months ago
3 files
+
56
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/Plugin/LanguageNegotiation/LanguageNegotiationCookie.php
+
0
−
6
View file @ 806fe4e8
Edit in single-file editor
Open in Web IDE
Show full file
@@ -79,12 +79,6 @@ class LanguageNegotiationCookie extends LanguageNegotiationMethodBase implements
if
(
$request
->
cookies
->
has
(
$param
)
&&
in_array
(
$request
->
cookies
->
get
(
$param
),
array_keys
(
$this
->
languageManager
->
getLanguages
())))
{
$langcode
=
$request
->
cookies
->
get
(
$param
);
// Internal page cache with multiple languages and browser negotiation
// could lead to wrong cached sites. Therefore disabling the internal page
// cache.
// @todo Solve more elegantly in https://www.drupal.org/node/2430335.
$this
->
pageCacheKillSwitch
->
trigger
();
}
return
$langcode
;
Loading