Skip to content

Commit 311cc05

Browse files
committed
Use named parameters
1 parent 5868930 commit 311cc05

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

_define.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,21 @@
2121

2222
declare(strict_types=1);
2323

24+
/** @var \Galette\Core\Plugins $this */
2425
$this->register(
25-
'Galette Legal Notices',
26-
'Manage legal notices in Galette',
27-
'Guillaume AGNIERAY',
28-
'1.0.0',
29-
'1.2.0',
30-
'legalnotices',
31-
'2025-10-17',
32-
[
26+
name: 'Galette Legal Notices', //Name
27+
desc: 'Manage legal notices in Galette', //Short description
28+
author: 'Guillaume AGNIERAY', //Author
29+
version: '1.0.0', //Version
30+
compver: '1.2.0', //Galette compatible version
31+
route: 'legalnotices', //Routing name and translation domain
32+
date: '2025-10-17', //Release date
33+
acls: [ //Permissions needed
3334
'legalnotices_settings' => 'admin',
3435
'legalnotices_store_settings' => 'admin',
3536
'legalnotices_pages' => 'staff',
3637
'legalnotices_page_change' => 'staff',
3738
'legalnotices_page_edit' => 'staff'
3839
],
39-
9999
40+
priority: 9999 //Priority
4041
);

0 commit comments

Comments
 (0)