Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getAliases () | |
apply () | |
Static Public Member Functions | |
static | getDependencies () |
Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.
Definition at line 9 of file data_patch_classes.php.
apply | ( | ) |
{Run code inside patch If code fails, patch must be reverted, in case when we are speaking about schema - than under revert means run PatchInterface::revert()If we speak about data, under revert means: $transaction->rollback()
Implements PatchInterface.
Definition at line 30 of file data_patch_classes.php.
getAliases | ( | ) |
{Get aliases (previous names) for the patch.
Implements PatchInterface.
Definition at line 22 of file data_patch_classes.php.
|
static |
{Get array of patches that have to be executed prior to this.example of implementation:[ \Vendor_Name\Module_Name\Setup\Patch\Patch1::class, \Vendor_Name\Module_Name\Setup\Patch\Patch2::class ]
Implements DependentPatchInterface.
Definition at line 14 of file data_patch_classes.php.