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
3e0a871e
Commit
3e0a871e
authored
Aug 24, 2020
by
Igor Biki
Browse files
ISTWCMS-3830 Removing empty line, and moving form attachment.
parent
c2ad875b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Block/ContentManagementMenuBlock.php
View file @
3e0a871e
...
...
@@ -150,12 +150,11 @@ class ContentManagementMenuBlock extends BlockBase implements ContainerFactoryPl
* {@inheritDoc}
*/
public
function
blockForm
(
$form
,
FormStateInterface
$form_state
)
{
$form
[
'#attached'
][
'library'
][]
=
'uw_dashboard/uw-styles'
;
// Use configuration if exists, otherwise select all available. Using
// serialize because dot is not supported as array key, exception will be
// thrown from ConfigBase.php:211.
$selected_menus
=
unserialize
(
$this
->
configuration
[
'selected_menus'
]);
$form
[
'#attached'
][
'library'
][]
=
'uw_dashboard/uw-styles'
;
// Get all content menu items, load them.
$menu_first_level
=
$this
->
getContentMenuItems
();
...
...
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