Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lb_plus
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
lb_plus
Merge requests
!31
Resolve
#3416770
"Add lbblockdecorator support"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve
#3416770
"Add lbblockdecorator support"
issue/lb_plus-3416770:3416770-add-lbblockdecorator-support
into
2.1.x
Overview
0
Commits
1
Pipelines
0
Changes
7
Merged
Resolve #3416770 "Add lbblockdecorator support"
Tim Bozeman
requested to merge
issue/lb_plus-3416770:3416770-add-lbblockdecorator-support
into
2.1.x
Jan 24, 2024
Overview
0
Commits
1
Pipelines
0
Changes
7
Closes
#3416770
0
0
Merge request reports
Compare
2.1.x
version 1
d106a245
Jan 24, 2024
2.1.x (base)
and
latest version
latest version
d106a245
1 commit,
Jan 24, 2024
version 1
d106a245
17 commits,
Jan 24, 2024
7 files
+
135
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
modules/lb_plus_lb_block_decorator/src/EventSubscriber/LbBlockDecoratorRouteSubscriber.php
0 → 100644
+
26
−
0
View file @ d106a245
Edit in single-file editor
Open in Web IDE
<?php
namespace
Drupal\lb_plus_lb_block_decorator\EventSubscriber
;
use
Drupal\Core\Routing\RouteSubscriberBase
;
use
Drupal\lb_plus_lb_block_decorator
\Form\BlockDecoratorForm
;
use
Symfony\Component\Routing\RouteCollection
;
/**
* Route subscriber.
*/
final
class
LbBlockDecoratorRouteSubscriber
extends
RouteSubscriberBase
{
/**
* {@inheritdoc}
*/
protected
function
alterRoutes
(
RouteCollection
$collection
):
void
{
// Add support for nested layouts.
$route
=
$collection
->
get
(
'lb_block_decorator.decorate'
);
$route
->
setDefault
(
'_form'
,
BlockDecoratorForm
::
class
);
$route
->
setDefault
(
'_title_callback'
,
BlockDecoratorForm
::
class
.
'::title'
);
$route
->
setDefault
(
'nested_storage_path'
,
NULL
);
$route
->
setPath
(
$route
->
getPath
()
.
'/{nested_storage_path}'
);
}
}
Loading