Example #1
0
 /**
  * Get page data
  *
  * @return array
  */
 protected function getPageData()
 {
     $result = parent::getPageData();
     if (\XLite\Core\Request::getInstance()->isGet()) {
         $result = array_merge(array($this->getDefaultPrice()), $result);
     }
     return $result;
 }
Example #2
0
 /**
  * Get page data
  *
  * @return array
  */
 protected function getPageData()
 {
     return array_filter(parent::getPageData(), function ($item) {
         /** @var \XLite\Model\Shipping\Method $item */
         return (bool) $item->getProcessorObject();
     });
 }