Example #1
0
 /**
  * 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;
 }
Example #2
0
 public function getLocal()
 {
     $localData = $this->localComponents->getItemById($this->getId());
     if (!$localData) {
         return false;
     }
     return new \Magento\Framework\DataObject($localData);
 }