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
Commits
bddf9782
Commit
bddf9782
authored
11 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2065149
by damiankloip: Fixed Cache local action plugin definitions.
parent
f5544cd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/core.services.yml
+1
-1
1 addition, 1 deletion
core/core.services.yml
core/lib/Drupal/Core/Menu/LocalActionManager.php
+8
-1
8 additions, 1 deletion
core/lib/Drupal/Core/Menu/LocalActionManager.php
with
9 additions
and
2 deletions
core/core.services.yml
+
1
−
1
View file @
bddf9782
...
...
@@ -171,7 +171,7 @@ services:
arguments
:
[
'
@container.namespaces'
]
plugin.manager.menu.local_action
:
class
:
Drupal\Core\Menu\LocalActionManager
arguments
:
[
'
@container.namespaces'
,
'
@controller_resolver'
,
'
@request'
,
'
@module_handler'
]
arguments
:
[
'
@container.namespaces'
,
'
@controller_resolver'
,
'
@request'
,
'
@module_handler'
,
'
@cache.cache'
,
'
@language_manager'
]
plugin.manager.menu.local_task
:
class
:
Drupal\Core\Menu\LocalTaskManager
arguments
:
[
'
@container.namespaces'
,
'
@controller_resolver'
,
'
@request'
,
'
@router.route_provider'
,
'
@module_handler'
]
...
...
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Menu/LocalActionManager.php
+
8
−
1
View file @
bddf9782
...
...
@@ -7,7 +7,9 @@
namespace
Drupal\Core\Menu
;
use
Drupal\Core\Cache\CacheBackendInterface
;
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\Language\LanguageManager
;
use
Drupal\Core\Menu\LocalActionInterface
;
use
Drupal\Core\Plugin\DefaultPluginManager
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -57,13 +59,18 @@ class LocalActionManager extends DefaultPluginManager {
* instances.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache backend instance to use.
* @param \Drupal\Core\Language\LanguageManager $language_manager
* The language manager.
*/
public
function
__construct
(
\Traversable
$namespaces
,
ControllerResolverInterface
$controller_resolver
,
Request
$request
,
ModuleHandlerInterface
$module_handler
)
{
public
function
__construct
(
\Traversable
$namespaces
,
ControllerResolverInterface
$controller_resolver
,
Request
$request
,
ModuleHandlerInterface
$module_handler
,
CacheBackendInterface
$cache_backend
,
LanguageManager
$language_manager
)
{
parent
::
__construct
(
'Plugin/Menu/LocalAction'
,
$namespaces
,
array
(),
'Drupal\Core\Annotation\Menu\LocalAction'
);
$this
->
controllerResolver
=
$controller_resolver
;
$this
->
request
=
$request
;
$this
->
alterInfo
(
$module_handler
,
'menu_local_actions'
);
$this
->
setCacheBackend
(
$cache_backend
,
$language_manager
,
'local_action_plugins'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment