Passed
Push — master ( 59ef93...98ef21 )
by Tim
08:21
created

metaedit_hook_configpage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
use SimpleSAML\Locale\Translate;
4
use SimpleSAML\Module;
5
use SimpleSAML\XHTML\Template;
6
7
/**
8
 * Hook to add the metaedit module to the config page.
9
 *
10
 * @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook.
11
 */
12
function metaedit_hook_configpage(Template &$template): void
13
{
14
    $template->data['links'][] = [
15
        'href' => Module::getModuleURL('metaedit/index.php'),
16
        'text' => [Translate::noop('Metadata registry')],
17
    ];
18
}
19