forked from Smile-SA/elasticsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Smile-SA#74 - Better admin for fuzziness config.
- Loading branch information
Aurélien FOUCRET
committed
Jul 12, 2016
1 parent
9862a8a
commit b88a60c
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/module-elasticsuite-core/Model/Config/Source/FuzzinessValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Smile Elastic Suite to newer | ||
* versions in the future. | ||
* | ||
* @category Smile | ||
* @package Smile\ElasticsuiteCore | ||
* @author Aurelien FOUCRET <[email protected]> | ||
* @copyright 2016 Smile | ||
* @license Open Software License ("OSL") v. 3.0 | ||
*/ | ||
|
||
namespace Smile\ElasticsuiteCore\Model\Config\Source; | ||
|
||
/** | ||
* Fuzziness value config source model. | ||
* | ||
* @category Smile | ||
* @package Smile\ElasticsuiteCore | ||
* @author Aurelien FOUCRET <[email protected]> | ||
*/ | ||
class FuzzinessValue implements \Magento\Framework\Option\ArrayInterface | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function toOptionArray() | ||
{ | ||
return [ | ||
'AUTO' => __('Automatic'), | ||
'1' => 1, | ||
'2' => 2, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters