function datalayer_get_page_data in dataLayer 8
Same name and namespace in other branches
- 7 datalayer.module \datalayer_get_page_data()
Return all the page meta data.
Return value
array The page data.
1 call to datalayer_get_page_data()
- datalayer_get_data_from_page in ./
datalayer.module - Add data for output.
File
- ./
datalayer.module, line 187 - Client-side data space.
Code
function datalayer_get_page_data() {
$entity = _datalayer_menu_get_any_object();
if (is_object($entity)) {
// Populate entity properties and values.
return _datalayer_get_entity_data($entity);
}
return [];
}