/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/MailTemplate
NameSizeModeActions
Layout/-0755rm
Transformation/-0755rm
FolderThemeCatalog.php44930644editdlrm
FolderThemeScanner.php64580644editdlrm
MailTemplateGenerator.php54640644editdlrm
MailTemplateInterface.php19120644editdlrm
MailTemplateRendererInterface.php23690644editdlrm
MailThemeConfiguration.php29990644editdlrm
Theme.php21400644editdlrm
ThemeCatalogInterface.php19920644editdlrm
ThemeCollection.php18840644editdlrm
ThemeCollectionInterface.php18600644editdlrm
ThemeInterface.php16000644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/MailTemplate/ThemeCollection.php (1884B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\MailTemplate; use PrestaShop\PrestaShop\Core\Data\AbstractTypedCollection; /** * Class MailThemeCollection is a collection of MailThemeInterface elements. */ class ThemeCollection extends AbstractTypedCollection implements ThemeCollectionInterface { /** * {@inheritdoc} */ protected function getType() { return ThemeInterface::class; } /** * @param string $themeName * * @return ThemeInterface|null */ public function getByName($themeName) { /* @phpstan-ignore-next-line $theme can't be null as we are in a typed collection */ return $this->filter(function (ThemeInterface $theme) use ($themeName) { return $themeName === $theme->getName(); })->first(); } }