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
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
Download
Patches
Plain diff
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
Tim Bozeman
requested to merge
issue/lb_plus-3416770:3416770-add-lbblockdecorator-support
into
2.1.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
7
Expand
Closes
#3416770
0
0
Merge request reports
Compare
2.1.x
version 1
d106a245
1 year ago
2.1.x (base)
and
latest version
latest version
d106a245
1 commit,
1 year ago
version 1
d106a245
17 commits,
1 year ago
7 files
+
135
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
modules/lb_plus_lb_block_decorator/src/EventSubscriber/LbBlockDecoratorRouteSubscriber.php
0 → 100644
+
26
−
0
Options
<?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