Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions
OtherDataPatch Class Reference
Inheritance diagram for OtherDataPatch:
DataPatchInterface PatchInterface DependentPatchInterface

Public Member Functions

 getAliases ()
 
 apply ()
 

Static Public Member Functions

static getDependencies ()
 

Detailed Description

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 9 of file data_patch_classes.php.

Member Function Documentation

◆ apply()

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()

Returns
$this
}

Implements PatchInterface.

Definition at line 30 of file data_patch_classes.php.

31  {
32  }

◆ getAliases()

getAliases ( )

{Get aliases (previous names) for the patch.

Returns
string[]
}

Implements PatchInterface.

Definition at line 22 of file data_patch_classes.php.

23  {
24  return [];
25  }

◆ getDependencies()

static getDependencies ( )
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 ]

Returns
string[]
}

Implements DependentPatchInterface.

Definition at line 14 of file data_patch_classes.php.

15  {
16  return [];
17  }

The documentation for this class was generated from the following file: