forked from michaelheider/bauboo.youtube-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
48 lines (43 loc) · 924 Bytes
/
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
<?php
namespace Bauboo\YouTube;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
/**
* {@inheritdoc}
*/
public function registerComponents()
{
return [
'Bauboo\Youtube\Components\Video' => 'video',
];
}
/**
* {@inheritdoc}
*/
public function registerSettings()
{
return [
'general' => [
'label' => 'bauboo.youtube::lang.plugin.name',
'description' => 'bauboo.youtube::lang.settings_item.description',
'icon' => 'oc-icon-youtube-play',
'class' => 'Bauboo\Youtube\Models\Settings',
'permissions' => ['bauboo.youtube.access_settings'],
'keywords' => 'bauboo.youtube::lang.settings_item.keywords',
],
];
}
/**
* {@inheritdoc}
*/
public function registerPermissions()
{
return [
'bauboo.youtube.access_settings' => [
'tab' => 'bauboo.youtube::lang.plugin.name',
'label' => 'bauboo.youtube::lang.permissions.label',
],
];
}
}