/** * Load Swissup components information, using local and remote data * * @return array */ public function load() { if ($this->isLoaded()) { return $this->items; } $this->setIsLoaded(true); $this->items = array_replace_recursive($this->localLoader->load(), $this->remoteLoader->load()); return $this->items; }
public function getRemote() { $remoteData = $this->remoteComponents->getItemById($this->getId()); if (!$remoteData) { return false; } return new \Magento\Framework\DataObject($remoteData); }