/** * Api certificate getter * * @return string */ public function getApiCertificate() { $websiteId = $this->_storeManager->getStore($this->_storeId)->getWebsiteId(); return $this->_certFactory->create()->loadByWebsite($websiteId, false)->getCertPath(); }
/** * Process object after delete data * * @return $this */ public function afterDelete() { $this->_certFactory->create()->loadByWebsite($this->getScopeId())->delete(); return $this; }