Files
resourcespace/plugins/simplesaml/lib/modules/cron/hooks/hook_configpage.php
2025-07-18 16:20:14 +07:00

23 lines
562 B
PHP

<?php
declare(strict_types=1);
use SimpleSAML\Locale\Translate;
use SimpleSAML\Module;
use SimpleSAML\XHTML\Template;
/**
* Hook to add the cron module to the config page.
*
* @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook.
*/
function cron_hook_configpage(Template &$template): void
{
$template->data['links'][] = [
'href' => Module::getModuleURL('cron/info'),
'text' => Translate::noop('Cron module information page'),
];
$template->getLocalization()->addModuleDomain('cron');
}