File Manager Lite
Dir:
/home/u540325668/domains/dumbafarm.in/public_html/src/Core/MailTemplate
Upload
[..]
FolderThemeCatalog.php (4.39 KB)
Edit
Rename
Del
FolderThemeScanner.php (6.31 KB)
Edit
Rename
Del
Layout/
Rename
Del
MailTemplateGenerator.php (5.34 KB)
Edit
Rename
Del
MailTemplateInterface.php (1.87 KB)
Edit
Rename
Del
MailTemplateRendererInterface.php (2.31 KB)
Edit
Rename
Del
MailThemeConfiguration.php (2.93 KB)
Edit
Rename
Del
Theme.php (2.09 KB)
Edit
Rename
Del
ThemeCatalogInterface.php (1.95 KB)
Edit
Rename
Del
ThemeCollection.php (1.84 KB)
Edit
Rename
Del
ThemeCollectionInterface.php (1.82 KB)
Edit
Rename
Del
ThemeInterface.php (1.56 KB)
Edit
Rename
Del
Transformation/
Rename
Del
Edit: ThemeCollection.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @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(); } }
Simpan