Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_dashboard
Commits
a538d56c
Commit
a538d56c
authored
Aug 22, 2020
by
Igor Biki
Browse files
ISTWCMS-3830 Update to comments, imports.
parent
18f322d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Block/ContentManagementMenuBlock.php
View file @
a538d56c
...
...
@@ -7,7 +7,6 @@ use Drupal\Core\Form\FormStateInterface;
use
Drupal\Core\Menu\MenuLinkTreeInterface
;
use
Drupal\Core\Menu\MenuTreeParameters
;
use
Drupal\Core\Plugin\ContainerFactoryPluginInterface
;
use
Drupal\Core\Url
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
...
...
@@ -69,7 +68,7 @@ class ContentManagementMenuBlock extends BlockBase implements ContainerFactoryPl
],
'#headers'
=>
[
$this
->
t
(
$primary_menu_item
->
link
->
getTitle
()),
$this
->
t
(
'Operations'
)
$this
->
t
(
'Operations'
)
,
],
];
...
...
@@ -237,7 +236,7 @@ class ContentManagementMenuBlock extends BlockBase implements ContainerFactoryPl
}
/**
* Process menu tree
. Recursive function (invokes self for subtree)
.
* Process menu tree
, setting key to be plugin id, and value to be title
.
*
* @param $tree
* Tree to be processed, access level checked.
...
...
Write
Preview
Supports
Markdown
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