-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
66 lines (61 loc) · 1.48 KB
/
Plugin.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php namespace Rebel59\Jobs;
use Backend;
use System\Classes\PluginBase;
use Illuminate\Support\Facades\Event;
/**
* Jobs Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'rebel59.jobs::lang.plugin.name',
'description' => 'rebel59.jobs::lang.plugin.description',
'author' => 'Rebel59',
'icon' => 'icon-user-plus'
];
}
public function registerComponents()
{
return [
'Rebel59\Jobs\Components\Jobs' => 'jobList',
];
}
/**
* Registers any back-end permissions used by this plugin.
*
* @return array
*/
public function registerPermissions()
{
return [
'rebel59.jobs.manage_jobs' => [
'tab' => 'Jobs',
'label' => 'Manage Jobs'
],
];
}
/**
* Registers back-end navigation items for this plugin.
*
* @return array
*/
public function registerNavigation()
{
return [
'jobs' => [
'label' => 'Jobs',
'url' => Backend::url('rebel59/jobs/jobs'),
'icon' => 'icon-user-plus',
'permissions' => ['rebel59.jobs.*'],
'order' => 500,
],
];
}
}