Guest User

Untitled

a guest
Oct 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. foreach ($themes as $theme) {
  2. if ($theme->getCode() == $themeName) {
  3. $this->config->assignToStore(
  4. $theme,
  5. [Store::DEFAULT_STORE_ID],
  6. ScopeConfigInterface::SCOPE_TYPE_DEFAULT
  7. );
  8. }
  9. }
  10.  
  11. $design = $this->objectManager->create('MagentoThemeModelViewDesign');
  12. $design->setDesignTheme($themeName, 'adminhtml');
Add Comment
Please, Sign In to add comment