Skip to content

Commit 869537a

Browse files
committed
feat: add method to retrieve theme by code in ThemeList
1 parent 04e78e6 commit 869537a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Model/ThemeList.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public function getAllThemes(): array
2828
return $this->magentoThemeList->getItems();
2929
}
3030

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+
*/
3137
public function getThemeByCode(string $code): ?\Magento\Framework\View\Design\ThemeInterface
3238
{
3339
$themes = $this->getAllThemes();

0 commit comments

Comments
 (0)