/** * Delete Expired Captcha Images * * @return \Magento\Captcha\Model\Observer */ public function deleteExpiredImages() { foreach ($this->_storeManager->getWebsites() as $website) { $this->_deleteExpiredImagesForWebsite($this->_helper, $website, $website->getDefaultStore()); } $this->_deleteExpiredImagesForWebsite($this->_adminHelper); return $this; }
/** * {@inheritdoc} */ public function getWebsites($withDefault = false, $codeKey = false) { $result = $this->decoratedStoreManager->getWebsites($withDefault, $codeKey); $this->dispatchInitCurrentStoreAfterEvent(); return $result; }