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
framework
Setup
Declaration
Schema
Operations
DropReference.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Setup\Declaration\Schema\Operations
;
8
9
use
Magento\Framework\Setup\Declaration\Schema\ElementHistory
;
10
use
Magento\Framework\Setup\Declaration\Schema\OperationInterface
;
11
15
class
DropReference
implements
OperationInterface
16
{
20
const
OPERATION_NAME
=
'drop_reference'
;
21
25
private
$dropElement;
26
32
public
function
__construct
(
DropElement
$dropElement)
33
{
34
$this->dropElement = $dropElement;
35
}
36
40
public
function
isOperationDestructive
()
41
{
42
return
true
;
43
}
44
48
public
function
getOperationName
()
49
{
50
return
self::OPERATION_NAME
;
51
}
52
56
public
function
doOperation
(
ElementHistory
$elementHistory)
57
{
58
return
$this->dropElement->doOperation($elementHistory);
59
}
60
}
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference
Definition:
DropReference.php:15
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference\OPERATION_NAME
const OPERATION_NAME
Definition:
DropReference.php:20
Magento\Framework\Setup\Declaration\Schema\Operations\DropElement
Definition:
DropElement.php:22
Magento\Framework\Setup\Declaration\Schema\ElementHistory
Definition:
ElementHistory.php:16
Magento\Framework\Setup\Declaration\Schema\OperationInterface
Definition:
OperationInterface.php:14
Magento\Framework\Setup\Declaration\Schema\Operations
Definition:
AddColumn.php:7
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference\isOperationDestructive
isOperationDestructive()
Definition:
DropReference.php:40
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference\doOperation
doOperation(ElementHistory $elementHistory)
Definition:
DropReference.php:56
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference\getOperationName
getOperationName()
Definition:
DropReference.php:48
Magento\Framework\Setup\Declaration\Schema\Operations\DropReference\__construct
__construct(DropElement $dropElement)
Definition:
DropReference.php:32