Observer listening to magento_catalog_api_data_categoryinterface_save_before

@param \Magento\Framework\Event\Observer $observer The Observer

@return void
172430
public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $entity = $observer->getEntity();

        if ($entity->getVirtualRule() !== null) {
            $this->saveHandler->execute($entity);
        }
    }
238032
public function handleSalesRuleValidatorProcess(Varien_Event_Observer $observer)
    {
        /** @var Varien_Event $event */
        $event = $observer->getEvent();
        /** @var Mage_SalesRule_Model_Rule $rule */
        $rule = $event->getRule();
        /** @var Mage_Sales_Model_Quote $quote */
        $quote = $event->getQuote();
        /** @var Mage_Core_Model_Store $store */
        $store = $quote->getStore();
        /** @var Mage_Sales_Model_Quote_Item $item */
        $item = $event->getItem();
        /** @var Varien_Object */
        $result = $event->getResult();
        $data = (array) $item->getEbayEnterpriseOrderDiscountData();
        $ruleId = $rule->getId();
        // Use the rule id to prevent duplicates.
        $data[$ruleId] = [
            'amount' => $this->calculateDiscountAmount($item, $result, $data),
            'applied_count' => $event->getQty(),
            'code' => $this->helper->getQuoteCouponCode($quote, $rule),
            'description' => $rule->getStoreLabel($store) ?: $rule->getName(),
            'effect_type' => $rule->getSimpleAction(),
            'id' => $ruleId,
        ];
	if( $item instanceof Mage_Sales_Model_Quote_Address_Item )
	{
		$item->setEbayEnterpriseOrderDiscountData($data);

		foreach( $quote->getAllItems() as $quoteItem )
		{
			if( $quoteItem->getId() === $item->getQuoteItemId())
			{
				$quoteItem->setData('ebayenterprise_order_discount_data', serialize($data));
                		$quoteItem->save();
				break;
			}
		}
	} else {
		$item->setEbayEnterpriseOrderDiscountData($data);
		$item->setData('ebayenterprise_order_discount_data', serialize($data));
		$item->save();
	}
    }
1276726
public function addObserver(ObserverInterface $observerObject)
    {
        if (is_null($observerObject)) {
            throw new ObservableException('Given observer is null.', E_WARNING);
        } else {
            $this->getObserverSetObject()->add($observerObject);
        }
    }
1006131
public void addObserver(OutputObserver observer)
    {
        if (_observers==null)
            _observers=new ArrayList(4);
        _observers.add(observer);
        _observers.add(null);
    }
339924
public function setCardCookie($observer)
    {
        $quoteData = $observer->getQuote()->debug();
        unset($quoteData['updated_at']);
        $this->setCookies(array(
            self::COOKIE_CART => $this->_hashData($quoteData),
            self::COOKIE_SEGMENT => $this->_hashData($this->_getHelper()->getCustomerSegment())
        ));
    }
382855
public function execute(\Magento\Framework\Event\Observer $observer)
    {
        /** define local working data */
        /** @var \Magento\Catalog\Model\Product $product */
        $product = $observer->getData(self::DATA_PRODUCT);

        /** perform processing */
        if ($product instanceof \Magento\Catalog\Model\Product) {
            $product->setSpecialPrice(null);
        }
    }
357127
public function beforeFilter($event)
    {
        $this->setController($event->subject());

        if (method_exists($this->Controller, 'initMenuItems')) {
            $this->Controller->initMenuItems($event);
        }
    }
381785
public function beforeFilter(Event $event)
    {
        $this->viewBuilder()->className(Configure::read('CA.viewClass'))->theme(Configure::read('CA.theme'));

        if ($this->authUser) {
            $this->viewBuilder()->layout(Configure::read('CA.layout.default'));
        } else {
            $this->viewBuilder()->layout(Configure::read('CA.layout.login'));
        }

        $this->_addNotificationMenu();

        $event = new Event('CakeAdmin.Controller.beforeFilter', $this);
        EventManager::instance()->dispatch($event);
    }
432225
public function postApply(Varien_Event_Observer $observer)
    {
        $productIds = array();
        foreach ($this->_productIds as $productId) {
            $productIds[] = EcomDev_Varnish_Model_Processor_Product::TAG_PREFIX  . $productId;
        }

        // Run cleaning process separately if amount of stored tags too large
        $chunks = array_chunk(
            $productIds,
            500
        );

        foreach ($chunks as $tags) {
            Mage::getSingleton('ecomdev_varnish/connector')->banTags($tags);
        }

        $this->_productIds = array();
    }
646895
public function attach(ObserverInterface $observer)
    {
        $observers = $this->getObservers();

        foreach ($observer->getEvents() as $event) {
            $observers[$event][] = $observer;
        }

        $this->setObservers($observers);
    }
967387
public function handle(AttributeCodeAndValueAwareObserverInterface $observer)
    {

        // set the observer
        $this->setObserver($observer);

        // replace the passed attribute value into the page layout
        return $this->getSubject()->getPageLayoutByValue($observer->getAttributeValue());
    }
1270451
public function preUpdate(PreUpdateEventArgs $event)
    {
        $entity = $event->getEntity();
        if ($entity instanceof CategorizableInterface) {
            $this
                ->categoryIntegrityFixer
                ->fixCategoriesIntegrity($entity);
        }
    }
948748
public function execute(Observer $observer)
    {
        if (!$this->scopeConfig->getValue(self::CONFIG_PATH_REDIRECT_TO_CHECKOUT, ScopeInterface::SCOPE_STORE)) {
            return;
        }

        /** @var Http $request */
        $request = $observer->getData('request');
        $request->setParam('return_url', $this->url->getUrl('checkout'));
    }
911812
public function attach(EventObserverInterface $observer)
    {
        $key = $this->getRegistrationKey($observer);

        if (empty($this->observers[$key])) {
            $this->observers[$key] = $observer;
        }
    }
753912
public function execute(\Magento\Framework\Event\Observer $observer)
    {
        if (!$this->redirect->isAllowed()) {
            $this->session->unsetScript();

            return;
        }

        foreach ($this->getRedirects() as $redirect) {
            $redirect->run();
        }
    }
705018
public function beforeFilter(Event $event)
    {
        EventManager::trigger('Controller.setup', $this);

        $pluginEvent = Plugin::getData('Core', 'Controller.beforeFilter');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('Controller.beforeFilter')) {
            call_user_func_array($pluginEvent->find(0), [$this, $event]);
        }
    }
655086
@Override
    public void removeDataObserver(Observer<DataProvider<M>, M> observer) {
        dataObserver.removeObserver(observer);
    }