Skip to content

Commit 9925cff

Browse files
authored
Merge pull request #60 from ByteInternet/magento2_backend_themes
Magento2: Add setMagentoBackendThemes
2 parents 694c324 + 3b45f31 commit 9925cff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ApplicationTemplate/Magento2.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,16 @@ public function setMagentoThemes(array $themes, bool $allowSplitStaticDeployment
6868
$this->setVariable('split_static_deployment', true);
6969
}
7070
}
71+
72+
/**
73+
* Set Magento backend themes
74+
*
75+
* @param string[]|array<string, string> $themes Array of themes as ['vendor/theme', 'vendor/theme']
76+
* or as ['vendor/theme' => 'nl_NL en_US', 'vendor/theme' => 'nl_NL en_US']
77+
*/
78+
public function setMagentoBackendThemes(array $themes): void
79+
{
80+
$this->setVariable('magento_themes_backend', $themes);
81+
$this->setVariable('split_static_deployment', true);
82+
}
7183
}

0 commit comments

Comments
 (0)