28 lines
689 B
PHP
Executable File
28 lines
689 B
PHP
Executable File
<?php
|
|
/**
|
|
* @author Amasty Team
|
|
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
|
* @package Elastic Search Base for Magento 2
|
|
*/
|
|
|
|
namespace Amasty\ElasticSearch\Model\Source;
|
|
|
|
class KuromojiTokenMode implements \Magento\Framework\Option\ArrayInterface
|
|
{
|
|
public const NORMAL = 'normal';
|
|
public const SEARCH = 'search';
|
|
public const EXTENDED = 'extended';
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
['value' => self::NORMAL, 'label' => __('Normal')],
|
|
['value' => self::SEARCH, 'label' => __('Search')],
|
|
['value' => self::EXTENDED, 'label' => __('Extended')]
|
|
];
|
|
}
|
|
}
|