-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathType.php
54 lines (49 loc) · 1.14 KB
/
Type.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
54
<?php
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_TwitterWidget
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
namespace Mageplaza\TwitterWidget\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
/**
* Class Type
*
* @package Mageplaza\TwitterWidget\Model\Config\Source
*/
class Type implements ArrayInterface
{
const TIMELINE = 0;
const TWEET = 1;
/**
* @return array
*/
public function toOptionArray()
{
$options = [
[
'value' => self::TIMELINE,
'label' => __('Timeline')
],
[
'value' => self::TWEET,
'label' => __('Tweet')
]
];
return $options;
}
}