addToSitewidePageHead()public function addToSitewidePageHead($canSetAnalytics, $canSetSocialMedia) { //...your PHP code...// }
This method lets you write HTML within the <head> tag of every content item on the site.
From Zenario 10.4 onwards, in modules with the adds_sitewide_html propery set in their description.yaml file.
If you have set the adds_sitewide_html propery in your module's description.yaml file then Zenario will call your module's addToSitewidePageHead() function every time a content item is displayed.
This lets you output HTML that will appear in the <head> of the page.
$canSetAnalyticsThis will be true or false, depending on whether the visitor has opted into analytics cookies.
$canSetSocialMediaThis will be true or false, depending on whether the visitor has opted into cookies from social media.
No return value is needed.