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
!7116
Closes
#3432482
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Closes
#3432482
issue/drupal-3432482:3432482-11.xremove-deprecated-code
into
11.x
Overview
0
Commits
2
Pipelines
2
Changes
15
Closed
mondrake
requested to merge
issue/drupal-3432482:3432482-11.xremove-deprecated-code
into
11.x
1 year ago
Overview
0
Commits
2
Pipelines
2
Changes
15
Expand
Closes
#3432482
0
0
Merge request reports
Compare
11.x
version 1
fd880a3a
1 year ago
11.x (base)
and
latest version
latest version
bbdd6243
2 commits,
1 year ago
version 1
fd880a3a
1 commit,
1 year ago
15 files
+
25
−
175
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
+
2
−
6
Options
@@ -13,14 +13,10 @@ class MenuActiveTrailsCacheContext implements CalculatedCacheContextInterface {
/**
* Constructs a MenuActiveTrailsCacheContext object.
*
* @param \Drupal\Core\Menu\MenuActiveTrailInterface
|null
$menuActiveTrailService
* @param \Drupal\Core\Menu\MenuActiveTrailInterface $menuActiveTrailService
* The menu active trail service.
*/
public
function
__construct
(
protected
?MenuActiveTrailInterface
$menuActiveTrailService
=
NULL
)
{
if
(
$this
->
menuActiveTrailService
===
NULL
)
{
@
trigger_error
(
'Calling '
.
__METHOD__
.
' without the $menuActiveTrailService argument is deprecated in drupal:10.2.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3397515'
,
E_USER_DEPRECATED
);
$this
->
menuActiveTrailService
=
\Drupal
::
service
(
'menu.active_trail'
);
}
public
function
__construct
(
protected
MenuActiveTrailInterface
$menuActiveTrailService
)
{
}
/**
Loading