Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DropReference.php
Go to the documentation of this file.
1 <?php
8 
11 
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 }