ListField.php 889 Bytes
Newer Older
Ketan's avatar
Ketan committed
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
<?php
/**
 *
 * SM Listing Tabs - Version 2.5.0
 * Copyright (c) 2017 YouTech Company. All Rights Reserved.
 * @license - Copyrighted Commercial Software
 * Author: YouTech Company
 * Websites: http://www.magentech.com
 */
 
namespace Sm\ListingTabs\Model\Config\Source;

class ListField implements \Magento\Framework\Option\ArrayInterface
{
	public function toOptionArray()
	{
		return [
			['value' => 'name', 'label'=>__('Name')],
			['value' => 'entity_id', 'label'=>__('Id')],
			['value' => 'price', 'label'=>__('Price')],
			['value' => 'lastest_products', 'label' => __('New Products')],
			['value' => 'num_rating_summary', 'label' => __('Top Rating')],
			['value' => 'num_reviews_count', 'label' => __('Most Reviews')],
			['value' => 'num_view_counts', 'label'=>__('Most Viewed')],
			['value' => 'ordered_qty', 'label'=>__('Most Selling')]
		];
	}
}