activityReport->addGroup('kutrl', __('Plugin kUtRL')); # from BEHAVIOR kutrlAfterCreateShortUrl in kUtRL/inc/lib.kutrl.srv.php $core->activityReport->addAction( 'kutrl', 'create', __('Short link creation'), __('New short link of type "%s" and hash "%s" was created.'), 'kutrlAfterCreateShortUrl', ['kutrlActivityReportBehaviors', 'kutrlCreate'] ); class kutrlActivityReportBehaviors { public static function kutrlCreate($rs) { $logs = [$rs->type,$rs->hash]; $GLOBALS['core']->activityReport->addLog('kutrl', 'create', $logs); } }