Skip to content

Commit 3b45f31

Browse files
committed
Magento2: Add setMagentoBackendThemes
This is more of an alias to the underlying functions, but makes it easier to define deploy configurations
1 parent 7abbb53 commit 3b45f31

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)