Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!11696
Issue
#3516558
: Settings is not a valid render array in navigation module
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3516558
: Settings is not a valid render array in navigation module
issue/drupal-3516558:3516558-settings-is-not-render-array
into
11.x
Overview
2
Commits
2
Pipelines
2
Changes
2
Closed
Pablo López
requested to merge
issue/drupal-3516558:3516558-settings-is-not-render-array
into
11.x
2 months ago
Overview
2
Commits
2
Pipelines
2
Changes
2
Expand
Closes
#3516558
0
0
Merge request reports
Compare
11.x
version 1
630de86e
2 months ago
11.x (base)
and
latest version
latest version
9b30de56
2 commits,
2 months ago
version 1
630de86e
1 commit,
2 months ago
2 files
+
15
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/modules/navigation/layouts/navigation.html.twig
+
11
−
10
Options
@@ -6,13 +6,14 @@
* Available variables:
* - content: The content for this layout.
* - attributes: HTML attributes for the layout <div>.
* - content.settings.hide_logo: Whether to hide the logo.
* - content.settings.logo_path: The path to the logo image if logo_managed
* in navigation.settings configuration has been set.
* - content.settings.logo_width: The width of the logo image. Available if
* logo_path points to a valid image file.
* - content.settings.logo_height: The height of the logo image. Available if
* logo_path points to a valid image file.
* - settings: layout settings. The following are related to the logo:
* - hide_logo: Whether to hide the logo.
* - logo_path: The path to the logo image if logo_managed
* in navigation.settings configuration has been set.
* - logo_width: The width of the logo image. Available if
* logo_path points to a valid image file.
* - settings.logo_height: The height of the logo image. Available if
* logo_path points to a valid image file.
* @ingroup themeable
*/
#}
@@ -45,10 +46,10 @@
<h3
id=
"
{{
title_menu
}}
"
class=
"visually-hidden"
>
{{
'Administrative toolbar content'
|
t
}}
</h3>
{# @todo - Needs to be placed here so we can have the header footer on mobile. #}
<div
class=
"admin-toolbar__header"
>
{%
if
not
content.
settings.hide_logo
%}
{%
if
not
settings.hide_logo
%}
<a
class=
"admin-toolbar__logo"
href=
"
{{
path
(
'<front>'
)
}}
"
>
{%
if
content.
settings.logo_path
is
not
null
%}
<img
alt=
"
{{
'Navigation logo'
|
t
}}
"
src=
"
{{
content.
settings.logo_path
}}
"
loading=
"eager"
width=
"
{{
content.
settings.logo_width
|
default
(
40
)
}}
"
height=
"
{{
content.
settings.logo_height
|
default
(
40
)
}}
"
>
{%
if
settings.logo_path
is
not
null
%}
<img
alt=
"
{{
'Navigation logo'
|
t
}}
"
src=
"
{{
settings.logo_path
}}
"
loading=
"eager"
width=
"
{{
settings.logo_width
|
default
(
40
)
}}
"
height=
"
{{
settings.logo_height
|
default
(
40
)
}}
"
>
{%
else
%}
{%
include
'@navigation/logo.svg.twig'
with
{
label
:
'Navigation logo'
|
t
Loading