![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/Ecombricks/Inventory/Observer/Framework/Model/AbstractModel/AfterLoad/ |
<?php /** * Copyright © eComBricks. All rights reserved. * See COPYING.txt for license details. */ namespace Ecombricks\Inventory\Observer\Framework\Model\AbstractModel\AfterLoad; /** * Model after load source observer trait */ trait SourceTrait { /** * Execute * * @param \Magento\Framework\Event\Observer $observer * @param array $targetedTypes * @return $this */ protected function inventoryExecute(\Magento\Framework\Event\Observer $observer, $targetedTypes) { $object = $this->getObject($observer); if (!$object) { return $this; } if (!$this->isTargetedType($object, $targetedTypes)) { return $this; } $object->inventoryAfterLoad(); return $this; } }