Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getAliases () | |
apply () | |
revert () | |
Static Public Member Functions | |
static | getDependencies () |
Definition at line 103 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 126 of file data_patch_classes.php.
getAliases | ( | ) |
{Get aliases (previous names) for the patch.
Implements PatchInterface.
Definition at line 118 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 110 of file data_patch_classes.php.
revert | ( | ) |
{Rollback all changes, done by this patch
Implements PatchRevertableInterface.
Definition at line 133 of file data_patch_classes.php.