Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio
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
bootstrap_barrio
Commits
90269701
"package_manager/tests/src/Build/TemplateProjectTestBase.php" did not exist on "0e561b4829dcf83ee435c064f84d3561c4049a9b"
Commit
90269701
authored
4 years ago
by
Alberto Siles
Committed by
Alberto Siles
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3133113
by hatuhay: validate id for menu block
parent
1bf32b1a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap_barrio.theme
+1
-1
1 addition, 1 deletion
bootstrap_barrio.theme
with
1 addition
and
1 deletion
bootstrap_barrio.theme
+
1
−
1
View file @
90269701
...
...
@@ -348,7 +348,7 @@ function bootstrap_barrio_preprocess_region(&$variables) {
* Implements hook_preprocess_HOOK() for block.html.twig.
*/
function
bootstrap_barrio_preprocess_block
(
&
$variables
)
{
if
(
$variables
[
'base_plugin_id'
]
==
'system_menu_block'
)
{
if
(
$variables
[
'base_plugin_id'
]
==
'system_menu_block'
&&
isset
(
$variables
[
'attributes'
][
'id'
])
)
{
$variables
[
'content'
][
'#attributes'
][
'block'
]
=
$variables
[
'attributes'
][
'id'
];
}
// Add a clearfix class to system branding blocks.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment