Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
context
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
1
Merge Requests
1
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
context
Commits
10ffa5da
Commit
10ffa5da
authored
Apr 14, 2020
by
gambry
Committed by
boshtian
Apr 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2926843
by Joao Sausen, gambry, maaty388: Missing dependencies for ContextReaction\Blocks
parent
85ac7dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/Plugin/ContextReaction/Blocks.php
src/Plugin/ContextReaction/Blocks.php
+17
-0
No files found.
src/Plugin/ContextReaction/Blocks.php
View file @
10ffa5da
...
...
@@ -2,6 +2,7 @@
namespace
Drupal\context\Plugin\ContextReaction
;
use
Drupal\Core\Plugin\PluginDependencyTrait
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\Core\Url
;
use
Drupal\Core\Form\FormState
;
...
...
@@ -38,6 +39,10 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
use
AjaxFormTrait
;
use
PluginDependencyTrait
{
addDependency
as
addDependencyTrait
;
}
/**
* An array of blocks to be displayed with this reaction.
*
...
...
@@ -697,4 +702,16 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
protected
function
getSystemRegionList
(
$theme
,
$show
=
REGIONS_ALL
)
{
return
system_region_list
(
$theme
,
$show
);
}
/**
* {@inheritdoc}
*/
public
function
calculateDependencies
()
{
$this
->
dependencies
=
parent
::
calculateDependencies
();
foreach
(
$this
->
getBlocks
()
as
$instance
)
{
$this
->
calculatePluginDependencies
(
$instance
);
}
return
$this
->
dependencies
;
}
}
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