Skip to content
Snippets Groups Projects
Commit b8c29c82 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

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!111Tag 1.0.1,!107Feature/istwcms 4704 ebremner layout header footer
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment