<?php
/**
* Landofcoder
*
* NOTICE OF LICENSE
*
* This source file is subject to the Landofcoder.com license that is
* available through the world-wide-web at this URL:
* https://landofcoder.com/license-agreement.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Landofcoder
* @package Lofmp_Blog
* @copyright Copyright (c) 2016 Landofcoder (https://landofcoder.com/)
* @license https://landofcoder.com/LICENSE-1.0.html
*/
namespace Lofmp\Blog\Model\Config\Source;
class PostType implements \Magento\Framework\Option\ArrayInterface
{
protected $_categoryFactory;
/**
* @param \Lofmp\Blog\Model\Category
*/
public function __construct(
\Lofmp\Blog\Model\Category $categoryFactory
){
$this->_categoryFactory = $categoryFactory;
}
public function toOptionArray()
{
$options = [];
$options[] = [
'label' => 'Style 1',
'value' => 'style1'
];
$options[] = [
'label' => 'Style 2',
'value' => 'style2'
];
$options[] = [
'label' => 'Style 3',
'value' => 'style3'
];
return $options;
}
} |