/** * Get 'staging' theme * * @return \Magento\Framework\View\Design\ThemeInterface */ public function getStagingTheme() { if (!$this->_stagingTheme) { $this->_stagingTheme = $this->_theme->getStagingVersion(); if (!$this->_stagingTheme) { $this->_stagingTheme = $this->_createStagingTheme(); $this->_themeCopyService->copy($this->_theme, $this->_stagingTheme); } } return $this->_stagingTheme; }