<?php

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']['cron'] = [
        'href' => Module::getModuleURL('cron/info'),
        'text' => Translate::noop('Cron module information page'),
    ];
    $template->getLocalization()->addModuleDomain('cron');
}

<?php

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');
}

Remove array key that has no function
Remove array key that has no function
