Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
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_cfg_common
Commits
b8c29c82
Commit
b8c29c82
authored
3 years ago
by
Eric Bremner
Committed by
Kevin Paxman
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4704: fixing error of null array and updating tags in footer to use proper format
parent
2968b517
No related branches found
No related tags found
2 merge requests
!111
Tag 1.0.1
,
!107
Feature/istwcms 4704 ebremner layout header footer
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Service/UWService.php
+6
-1
6 additions, 1 deletion
src/Service/UWService.php
with
6 additions
and
1 deletion
src/Service/UWService.php
+
6
−
1
View file @
b8c29c82
...
...
@@ -480,6 +480,11 @@ class UWService implements UWServiceInterface {
*/
public
function
uwGetHeaderData
(
Node
$node
):
array
{
// Array to hold the header data, need to set to
// null in case there are no header data to be
// returned.
$header_data
=
[];
// Get the header data, depending on the content type.
switch
(
$node
->
getType
())
{
...
...
@@ -525,7 +530,7 @@ class UWService implements UWServiceInterface {
switch
(
$node
->
getType
())
{
case
'uw_ct_blog'
;
$footer_data
=
[
'tags'
=>
$this
->
uwGetTerms
(
$node
->
get
(
'field_uw_blog_tags'
)
->
getValue
(),
'tags'
),
'tags'
=>
[
$this
->
uwGetTerms
(
$node
->
get
(
'field_uw_blog_tags'
)
->
getValue
(),
'tags'
)
]
,
];
break
;
}
...
...
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