Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog-search
Plugin
EnableEavIndexer.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\CatalogSearch\Plugin
;
9
16
class
EnableEavIndexer
17
{
21
const
SEARCH_ENGINE_VALUE_PATH
=
'groups/search/fields/engine/value'
;
22
26
public
function
beforeSave
(\
Magento
\Config\Model\Config $subject)
27
{
28
$searchEngine = $subject->getData(self::SEARCH_ENGINE_VALUE_PATH);
29
if
($searchEngine ===
'mysql'
) {
30
$data
= $subject->getData();
31
$data
[
'groups'
][
'search'
][
'fields'
][
'enable_eav_indexer'
][
'value'
] = 1;
32
33
$subject->setData(
$data
);
34
}
35
}
36
}
Magento\CatalogSearch\Plugin
Definition:
EnableEavIndexer.php:8
Magento\CatalogSearch\Plugin\EnableEavIndexer
Definition:
EnableEavIndexer.php:16
Magento\CatalogSearch\Plugin\EnableEavIndexer\SEARCH_ENGINE_VALUE_PATH
const SEARCH_ENGINE_VALUE_PATH
Definition:
EnableEavIndexer.php:21
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\CatalogSearch\Plugin\EnableEavIndexer\beforeSave
beforeSave(\Magento\Config\Model\Config $subject)
Definition:
EnableEavIndexer.php:26
Magento