-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathelgg-plugin.php
More file actions
37 lines (35 loc) · 706 Bytes
/
elgg-plugin.php
File metadata and controls
37 lines (35 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use ColdTrick\TargetBlank\Bootstrap;
use Elgg\Router\Middleware\AdminGatekeeper;
return [
'plugin' => [
'version' => '10.2',
],
'bootstrap' => Bootstrap::class,
'events' => [
'config' => [
'htmlawed' => [
'\ColdTrick\TargetBlank\HTMLawed::denyTargetAttribute' => [],
],
],
'elgg.data' => [
'page' => [
'\ColdTrick\TargetBlank\Javascript::setLinkSuffix' => [],
],
],
'setting' => [
'plugin' => [
'\ColdTrick\TargetBlank\PluginSettings::saveLinkSuffix' => [],
],
],
],
'routes' => [
'target_blank:test' => [
'path' => '/target_blank/test',
'resource' => 'target_blank/test',
'middleware' => [
AdminGatekeeper::class,
],
],
],
];