コード例 #1
0
ファイル: Reader.php プロジェクト: pradeep-wagento/magento2
 /**
  * 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
ファイル: Layout.php プロジェクト: opexsw/magento2
 /**
  * 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;
 }