Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d9b4e686
Commit
d9b4e686
authored
Apr 26, 2017
by
cilefen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2868949
by bircher: LayoutPluginManager should use ContainerDerivativeDiscoveryDecorator
parent
dccab71e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/lib/Drupal/Core/Layout/LayoutPluginManager.php
core/lib/Drupal/Core/Layout/LayoutPluginManager.php
+2
-2
No files found.
core/lib/Drupal/Core/Layout/LayoutPluginManager.php
View file @
d9b4e686
...
...
@@ -3,13 +3,13 @@
namespace
Drupal\Core\Layout
;
use
Drupal\Component\Annotation\Plugin\Discovery\AnnotationBridgeDecorator
;
use
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator
;
use
Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
;
use
Drupal\Core\Cache\CacheBackendInterface
;
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\Extension\ThemeHandlerInterface
;
use
Drupal\Core\Plugin\DefaultPluginManager
;
use
Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery
;
use
Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator
;
use
Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator
;
use
Drupal\Core\Layout\Annotation\Layout
;
...
...
@@ -66,7 +66,7 @@ protected function getDiscovery() {
$discovery
=
new
AnnotatedClassDiscovery
(
$this
->
subdir
,
$this
->
namespaces
,
$this
->
pluginDefinitionAnnotationName
,
$this
->
additionalAnnotationNamespaces
);
$discovery
=
new
YamlDiscoveryDecorator
(
$discovery
,
'layouts'
,
$this
->
moduleHandler
->
getModuleDirectories
()
+
$this
->
themeHandler
->
getThemeDirectories
());
$discovery
=
new
AnnotationBridgeDecorator
(
$discovery
,
$this
->
pluginDefinitionAnnotationName
);
$discovery
=
new
DerivativeDiscoveryDecorator
(
$discovery
);
$discovery
=
new
Container
DerivativeDiscoveryDecorator
(
$discovery
);
$this
->
discovery
=
$discovery
;
}
return
$this
->
discovery
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment