Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UpdateAutocompleteOnStorefrontConfigPath.php
Go to the documentation of this file.
1 <?php
8 
13 
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'),
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 }
const XML_PATH_ENABLE_AUTOCOMPLETE
Definition: Form.php:19