-
Notifications
You must be signed in to change notification settings - Fork 10
/
Plugin.php
44 lines (40 loc) · 1.39 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
<?php namespace RainLab\Twitter;
use System\Classes\PluginBase;
/**
* Plugin class is the plugin initialization script that defines the plugin information.
*/
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Twitter',
'description' => 'Provides integration with Twitter.',
'author' => 'Alexey Bobkov, Samuel Georges',
'icon' => 'icon-twitter'
];
}
public function registerComponents()
{
return [
\RainLab\Twitter\Components\Favorites::class => 'twitterFavorites',
\RainLab\Twitter\Components\FollowButton::class => 'followButton',
\RainLab\Twitter\Components\TweetButton::class => 'tweetButton',
\RainLab\Twitter\Components\EmbedTweet::class => 'embedTweet',
\RainLab\Twitter\Components\EmbedTimeline::class => 'embedTimeline',
\RainLab\Twitter\Components\LatestTweet::class => 'latestTweet'
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Twitter',
'icon' => 'icon-twitter',
'description' => 'Configure Twitter authentication parameters.',
'class' => \RainLab\Twitter\Models\Settings::class,
'order' => 600
]
];
}
}