I'm writing a custom data extension and I would like to show some things on the Contact Dashboard (not the 'full' dashboard).
I see the hook for the regular Dashboard and Dashlets, but nothing to output anything on the UserDashBoard
CRM/Contact/UserDashboard.php seems to eventually call a lot of hardcoded functions for components.
I've gotten to hook_civicrm_pageRun where I can add stuff by doing this:
if ($page->getVar('_name') == "CRM_Contact_Page_View_UserDashBoard") and then simply echo-ing stuff but that doesn't seem to be the 'correct' way of doing things, the CSS doesn't get applied correctly etc.
I've also tried to create a page (using civix generate:page) and then adding UserDashboard.php and tpl files similar to how CRM/Events does it but that doesn't seem to get called at all. I see in Core Components a function named getDashboardObject but there is virtually no documentation, no comments or a way of calling it from within an extension.
I'm trying to affect the User Dashboard which gets generated at http://site/civicrm/user