-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPlugin.php
executable file
·53 lines (47 loc) · 1.29 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
<?php namespace Cptmeatball\Testimonium;
use System\Classes\PluginBase;
use Backend;
/**
* testimonium Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Testimonium',
'description' => 'Testimonial Plugin',
'author' => 'cptmeatball',
'icon' => 'icon-heart'
];
}
public function registerComponents()
{
return [
'Cptmeatball\Testimonium\Components\Testimonials' => 'Testimonial',
'Cptmeatball\Testimonium\Components\NewTestimonial' => 'NewTestimonial',
];
}
public function registerPermissions()
{
return [
'cptmeatball.testimonium.access_testimonials' => ['tab' => 'Testimonium', 'label' => 'Testimonium'],
];
}
public function registerNavigation()
{
return [
'testimonium' => [
'label' => 'Gastenboek',
'url' => Backend::url('cptmeatball/testimonium/testimonials'),
'permissions' => ['cptmeatball.testimonium'],
'icon' => 'icon-heart'
]
];
}
}