Example #1
0
 /**
  * Initialize page layouts list
  *
  * @return \Magento\Theme\Model\Layout\Config
  */
 protected function _initPageLayouts()
 {
     if ($this->_pageLayouts === null) {
         $this->_pageLayouts = [];
         foreach ($this->_dataStorage->get(null) as $layoutCode => $layoutConfig) {
             $layoutConfig['label'] = __($layoutConfig['label']);
             $this->_pageLayouts[$layoutCode] = new \Magento\Framework\Object($layoutConfig);
         }
     }
     return $this;
 }
Example #2
0
 /**
  * Initialize page types list
  *
  * @return $this
  */
 protected function _initPageTypes()
 {
     if ($this->_pageTypes === null) {
         $this->_pageTypes = [];
         foreach ($this->_dataStorage->get(null) as $pageTypeId => $pageTypeConfig) {
             $pageTypeConfig['label'] = (string) new \Magento\Framework\Phrase($pageTypeConfig['label']);
             $this->_pageTypes[$pageTypeId] = new \Magento\Framework\DataObject($pageTypeConfig);
         }
     }
     return $this;
 }
Example #3
0
 /**
  * Initialize page types list
  *
  * @return $this
  */
 protected function _initPageTypes()
 {
     if ($this->_pageTypes === null) {
         $this->_pageTypes = array();
         foreach ($this->_dataStorage->get(null) as $pageTypeId => $pageTypeConfig) {
             $pageTypeConfig['label'] = __($pageTypeConfig['label']);
             $this->_pageTypes[$pageTypeId] = new \Magento\Framework\Object($pageTypeConfig);
         }
     }
     return $this;
 }
Example #4
0
 /**
  * Get list of settings for showing totals in PDF
  *
  * @return array
  */
 public function getTotals()
 {
     return $this->_dataStorage->get('totals', array());
 }
 /**
  * Get payment groups
  *
  * @return array
  * @api
  */
 public function getGroups()
 {
     return $this->_dataStorage->get('groups');
 }
 /**
  * Get list of sections for invalidation
  *
  * @return array
  */
 public function getSections()
 {
     return $this->sectionConfig->get('sections');
 }
Example #7
0
 public function getAdyenCcTypes()
 {
     return $this->_dataStorage->get('adyen_credit_cards');
 }