for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Webmozart\Assert\Assert;
/**
* Hook to add the consentAdmin module to the frontpage.
*
* @param array &$links The links on the frontpage, split into sections.
* @return void
*/
function consentAdmin_hook_frontpage(array &$links): void
{
Assert::keyExists($links, 'links');
$links['config'][] = [
'href' => SimpleSAML\Module::getModuleURL('consentAdmin/consentAdmin.php'),
'text' => '{consentAdmin:consentadmin:link_consentAdmin}',
];
}