-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtension.php
49 lines (41 loc) · 997 Bytes
/
Extension.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
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link https://vistart.name/
* @copyright Copyright (c) 2016 vistart
* @license https://vistart.name/license/
*/
namespace rhoone\keyword;
use rhoone\keyword\widgets\KeywordWidget;
/**
* Description of Extension
*
* @author vistart <[email protected]>
*/
class Extension extends \rhoone\extension\Extension
{
public static function id()
{
return static::config()['id'];
}
public static function name()
{
return static::config()['name'];
}
public static function config()
{
return [
'id' => 'keyword',
'name' => 'Keyword',
'default' => true,
'monopolized' => false,
];
}
public function search($keywords)
{
return KeywordWidget::widget(['keyword' => $keywords]);
}
}