Own Module: setting autorefresh for a Monitoring tab

Hello

I’ve made a module that adds a monitoring tab by registering the Monitoring\ObjectDetailsTab hook. It works, but I’d also like to make it refresh itself periodically (just like the ordinary tabs do). Is there a standard way to do it from a hook (namely ObjectDetailsTabHook)?

Regards,

M.

Hi,

in the hook’s getContent method, call this:

$request->getReponse()->setAutoRefreshInterval(30); // Seconds
1 Like