-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
72 lines (63 loc) · 1.89 KB
/
Copy pathPlugin.php
File metadata and controls
72 lines (63 loc) · 1.89 KB
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
67
68
69
70
71
72
<?php namespace Inetis\GooglePhotos;
use System\Classes\PluginBase;
/**
* GooglePhotos Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'inetis.googlephotos::lang.plugin.name',
'description' => 'inetis.googlephotos::lang.plugin.description',
'author' => 'inetis',
'icon' => 'icon-image'
];
}
public function registerComponents()
{
return [
'Inetis\GooglePhotos\Components\GooglePhotosAlbums' => 'googlePhotosAlbums',
'Inetis\GooglePhotos\Components\GooglePhotosAlbum' => 'googlePhotosAlbum'
];
}
public function registerPageSnippets()
{
return $this->registerComponents();
}
public function registerFormWidgets()
{
return [
'Inetis\GooglePhotos\FormWidgets\OAuthButton' => [
'label' => 'Location Selector',
'code' => 'googlePhotosOAuthButton'
],
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'inetis.googlephotos::lang.settings.menuEntry.label',
'description' => 'inetis.googlephotos::lang.settings.menuEntry.description',
'icon' => 'icon-image',
'class' => 'Inetis\GooglePhotos\Models\Settings',
'permissions' => ['inetis.googlephotos.access_settings'],
]
];
}
public function registerPermissions()
{
return [
'inetis.googlephotos.access_settings' => [
'tab' => 'inetis.googlephotos::lang.permissions.tab',
'label' => 'inetis.googlephotos::lang.permissions.access_settings'
],
];
}
}