File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
app/code/Magento/Search/Model/Adminhtml/System/Config/Source Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Search \Model \Adminhtml \System \Config \Source ;
7
7
8
- use Magento \Framework \App \ObjectManager ;
9
- use Magento \Framework \Search \EngineResolverInterface ;
10
-
11
8
/**
12
9
* All registered search adapters
13
10
*
@@ -23,23 +20,13 @@ class Engine implements \Magento\Framework\Option\ArrayInterface
23
20
*/
24
21
private $ engines ;
25
22
26
- /**
27
- * Engine Resolver
28
- *
29
- * @var EngineResolverInterface
30
- */
31
- private $ engineResolver ;
32
-
33
23
/**
34
24
* @param array $engines
35
- * @param EngineResolverInterface|null $engineResolver
36
25
*/
37
26
public function __construct (
38
- array $ engines ,
39
- EngineResolverInterface $ engineResolver = null
27
+ array $ engines
40
28
) {
41
29
$ this ->engines = $ engines ;
42
- $ this ->engineResolver = $ engineResolver ?? ObjectManager::getInstance ()->get (EngineResolverInterface::class);
43
30
}
44
31
45
32
/**
@@ -49,9 +36,6 @@ public function toOptionArray()
49
36
{
50
37
$ options = [['value ' => null , 'label ' => __ ('--Please Select-- ' )]];
51
38
foreach ($ this ->engines as $ key => $ label ) {
52
- if ($ this ->engineResolver ->getCurrentSearchEngine () === $ key ) {
53
- $ label = $ label . ' ( ' . __ ('Default ' ) . ') ' ;
54
- }
55
39
$ options [] = ['value ' => $ key , 'label ' => $ label ];
56
40
}
57
41
return $ options ;
You can’t perform that action at this time.
0 commit comments