We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e78e6 commit 869537aCopy full SHA for 869537a
1 file changed
src/Model/ThemeList.php
@@ -28,6 +28,12 @@ public function getAllThemes(): array
28
return $this->magentoThemeList->getItems();
29
}
30
31
+ /**
32
+ * Get theme by code
33
+ *
34
+ * @param string $code Theme code (e.g., 'Magento/luma')
35
+ * @return \Magento\Framework\View\Design\ThemeInterface|null
36
+ */
37
public function getThemeByCode(string $code): ?\Magento\Framework\View\Design\ThemeInterface
38
{
39
$themes = $this->getAllThemes();
0 commit comments