Пример #1
0
 /**
  * Retrieve the layout update instance
  *
  * @return \Magento\Framework\View\Layout\ProcessorInterface
  */
 protected function getPageLayoutMerge()
 {
     if ($this->pageLayoutMerge) {
         return $this->pageLayoutMerge;
     }
     $this->pageLayoutMerge = $this->processorFactory->create(['theme' => $this->themeResolver->get(), 'fileSource' => $this->pageLayoutFileSource, 'cacheSuffix' => self::MERGE_CACHE_SUFFIX]);
     return $this->pageLayoutMerge;
 }
Пример #2
0
 /**
  * Retrieve the layout update instance
  *
  * @return \Magento\Framework\View\Layout\ProcessorInterface
  */
 public function getUpdate()
 {
     if (!$this->_update) {
         $theme = $this->themeResolver->get();
         $this->_update = $this->_processorFactory->create(['theme' => $theme]);
     }
     return $this->_update;
 }