/** * 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; }
/** * 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; }
/** * 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; }
/** * 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'); }
public function getAdyenCcTypes() { return $this->_dataStorage->get('adyen_credit_cards'); }