catalogData = $catalogData; } /** * Checking whether the using static urls in WYSIWYG allowed event * * @param \Magento\Framework\Event\Observer $observer * @return void */ public function execute(\Magento\Framework\Event\Observer $observer) { $storeId = $observer->getEvent()->getData('store_id'); $result = $observer->getEvent()->getData('result'); $result->isAllowed = $this->catalogData->setStoreId($storeId)->isUsingStaticUrlsAllowed(); } }