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-customer
Setup
Patch
Data
UpdateAutocompleteOnStorefrontConfigPath.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Setup\Patch\Data
;
8
9
use
Magento\Framework\App\ResourceConnection
;
10
use
Magento\Framework\Setup\ModuleDataSetupInterface
;
11
use
Magento\Framework\Setup\Patch\DataPatchInterface
;
12
use
Magento\Framework\Setup\Patch\PatchVersionInterface
;
13
18
class
UpdateAutocompleteOnStorefrontConfigPath
implements
DataPatchInterface
,
PatchVersionInterface
19
{
23
private
$moduleDataSetup;
24
29
public
function
__construct
(
30
ModuleDataSetupInterface
$moduleDataSetup
31
) {
32
$this->moduleDataSetup = $moduleDataSetup;
33
}
34
38
public
function
apply
()
39
{
40
$this->moduleDataSetup->getConnection()->update(
41
$this->moduleDataSetup->getTable(
'core_config_data'
),
42
[
'path'
=>
\Magento\Customer\Model\Form::XML_PATH_ENABLE_AUTOCOMPLETE
],
43
[
'path = ?'
=>
'general/restriction/autocomplete_on_storefront'
]
44
);
45
}
46
50
public
static
function
getDependencies
()
51
{
52
return
[
53
AddSecurityTrackingAttributes::class,
54
];
55
}
56
60
public
static
function
getVersion
()
61
{
62
return
'2.0.8'
;
63
}
64
68
public
function
getAliases
()
69
{
70
return
[];
71
}
72
}
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:18
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath\getAliases
getAliases()
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:68
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath\getVersion
static getVersion()
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:60
Magento\Customer\Model\Form\XML_PATH_ENABLE_AUTOCOMPLETE
const XML_PATH_ENABLE_AUTOCOMPLETE
Definition:
Form.php:19
Magento\Framework\Setup\ModuleDataSetupInterface
Definition:
ModuleDataSetupInterface.php:14
Magento\Customer\Setup\Patch\Data
Definition:
AddCustomerUpdatedAtAttribute.php:7
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath\apply
apply()
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:38
Magento\Framework\App\ResourceConnection
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath\__construct
__construct(ModuleDataSetupInterface $moduleDataSetup)
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:29
Magento\Customer\Setup\Patch\Data\UpdateAutocompleteOnStorefrontConfigPath\getDependencies
static getDependencies()
Definition:
UpdateAutocompleteOnStorefrontConfigPath.php:50