Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_ct_site_footer
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_ct_site_footer
Commits
8980ffd0
Commit
8980ffd0
authored
2 years ago
by
Chris Shantz
Browse files
Options
Downloads
Plain Diff
Merge branch '1.0.x' into prod/1.0.x
parents
037cac8a
fdc003b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/install/core.entity_view_display.node.uw_ct_site_footer.default.yml
+3
-0
3 additions, 0 deletions
...re.entity_view_display.node.uw_ct_site_footer.default.yml
src/Plugin/Block/SiteFooterBlock.php
+4
-0
4 additions, 0 deletions
src/Plugin/Block/SiteFooterBlock.php
with
7 additions
and
0 deletions
config/install/core.entity_view_display.node.uw_ct_site_footer.default.yml
+
3
−
0
View file @
8980ffd0
...
...
@@ -26,6 +26,9 @@ third_party_settings:
layout_id
:
uw_1_column
layout_settings
:
label
:
'
'
context_mapping
:
{
}
layout_builder_styles_style
:
uw_lbs_contained_width
layout_builder_id
:
'
'
components
:
{
}
third_party_settings
:
{
}
layout_builder_restrictions
:
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Block/SiteFooterBlock.php
+
4
−
0
View file @
8980ffd0
...
...
@@ -14,6 +14,7 @@ use Drupal\Core\Path\CurrentPathStack;
use
Drupal\Core\Plugin\ContainerFactoryPluginInterface
;
use
Drupal\Core\Routing\CurrentRouteMatch
;
use
Drupal\Core\Session\AccountProxyInterface
;
use
Drupal\Core\Url
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
...
...
@@ -275,6 +276,9 @@ class SiteFooterBlock extends BlockBase implements ContainerFactoryPluginInterfa
}
}
// Add the home link to the site footer.
$site_footer
[
'home_link'
]
=
Url
::
fromRoute
(
'<front>'
,
[],
[
'absolute'
=>
'true'
])
->
toString
();
return
[
'#theme'
=>
'uw_site_footer'
,
'#site_footer'
=>
$site_footer
,
...
...
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