|
| 1 | +namespace Magento\Framework\Interception\Code\Generator\SampleBackendMenu; |
| 2 | + |
| 3 | +/** |
| 4 | + * Interceptor class for @see \Magento\Framework\Interception\Code\Generator\SampleBackendMenu |
| 5 | + */ |
| 6 | +class Interceptor extends \Magento\Framework\Interception\Code\Generator\SampleBackendMenu implements \Magento\Framework\Interception\InterceptorInterface |
| 7 | +{ |
| 8 | + use \Magento\Framework\Interception\Interceptor; |
| 9 | + |
| 10 | + public function __construct(\Psr\Log\LoggerInterface $logger, $pathInMenuStructure = '', ?\Magento\Backend\Model\Menu\Item\Factory $menuItemFactory = null, ?\Magento\Framework\Serialize\SerializerInterface $serializer = null) |
| 11 | + { |
| 12 | + $this->___init(); |
| 13 | + parent::__construct($logger, $pathInMenuStructure, $menuItemFactory, $serializer); |
| 14 | + } |
| 15 | + |
| 16 | + /** |
| 17 | + * {@inheritdoc} |
| 18 | + */ |
| 19 | + public function add(\Magento\Backend\Model\Menu\Item $item, $parentId = null, $index = null) |
| 20 | + { |
| 21 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'add'); |
| 22 | + return $pluginInfo ? $this->___callPlugins('add', func_get_args(), $pluginInfo) : parent::add($item, $parentId, $index); |
| 23 | + } |
| 24 | + |
| 25 | + /** |
| 26 | + * {@inheritdoc} |
| 27 | + */ |
| 28 | + public function get($itemId) |
| 29 | + { |
| 30 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'get'); |
| 31 | + return $pluginInfo ? $this->___callPlugins('get', func_get_args(), $pluginInfo) : parent::get($itemId); |
| 32 | + } |
| 33 | + |
| 34 | + /** |
| 35 | + * {@inheritdoc} |
| 36 | + */ |
| 37 | + public function move($itemId, $toItemId, $sortIndex = null) |
| 38 | + { |
| 39 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'move'); |
| 40 | + return $pluginInfo ? $this->___callPlugins('move', func_get_args(), $pluginInfo) : parent::move($itemId, $toItemId, $sortIndex); |
| 41 | + } |
| 42 | + |
| 43 | + /** |
| 44 | + * {@inheritdoc} |
| 45 | + */ |
| 46 | + public function remove($itemId) |
| 47 | + { |
| 48 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'remove'); |
| 49 | + return $pluginInfo ? $this->___callPlugins('remove', func_get_args(), $pluginInfo) : parent::remove($itemId); |
| 50 | + } |
| 51 | + |
| 52 | + /** |
| 53 | + * {@inheritdoc} |
| 54 | + */ |
| 55 | + public function reorder($itemId, $position) |
| 56 | + { |
| 57 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'reorder'); |
| 58 | + return $pluginInfo ? $this->___callPlugins('reorder', func_get_args(), $pluginInfo) : parent::reorder($itemId, $position); |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * {@inheritdoc} |
| 63 | + */ |
| 64 | + public function isLast(\Magento\Backend\Model\Menu\Item $item) |
| 65 | + { |
| 66 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isLast'); |
| 67 | + return $pluginInfo ? $this->___callPlugins('isLast', func_get_args(), $pluginInfo) : parent::isLast($item); |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * {@inheritdoc} |
| 72 | + */ |
| 73 | + public function getFirstAvailable() |
| 74 | + { |
| 75 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getFirstAvailable'); |
| 76 | + return $pluginInfo ? $this->___callPlugins('getFirstAvailable', func_get_args(), $pluginInfo) : parent::getFirstAvailable(); |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * {@inheritdoc} |
| 81 | + */ |
| 82 | + public function getParentItems($itemId) |
| 83 | + { |
| 84 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getParentItems'); |
| 85 | + return $pluginInfo ? $this->___callPlugins('getParentItems', func_get_args(), $pluginInfo) : parent::getParentItems($itemId); |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * {@inheritdoc} |
| 90 | + */ |
| 91 | + public function serialize() |
| 92 | + { |
| 93 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'serialize'); |
| 94 | + return $pluginInfo ? $this->___callPlugins('serialize', func_get_args(), $pluginInfo) : parent::serialize(); |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * {@inheritdoc} |
| 99 | + */ |
| 100 | + public function toArray() |
| 101 | + { |
| 102 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'toArray'); |
| 103 | + return $pluginInfo ? $this->___callPlugins('toArray', func_get_args(), $pluginInfo) : parent::toArray(); |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * {@inheritdoc} |
| 108 | + */ |
| 109 | + public function unserialize($serialized) |
| 110 | + { |
| 111 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'unserialize'); |
| 112 | + return $pluginInfo ? $this->___callPlugins('unserialize', func_get_args(), $pluginInfo) : parent::unserialize($serialized); |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * {@inheritdoc} |
| 117 | + */ |
| 118 | + public function populateFromArray(array $data) |
| 119 | + { |
| 120 | + $pluginInfo = $this->pluginList->getNext($this->subjectType, 'populateFromArray'); |
| 121 | + return $pluginInfo ? $this->___callPlugins('populateFromArray', func_get_args(), $pluginInfo) : parent::populateFromArray($data); |
| 122 | + } |
| 123 | +} |
0 commit comments