Files
kupshop/bundles/KupShop/ComponentsBundle/View/BaseEntrypointComponentsView.php
2025-08-02 16:30:27 +02:00

25 lines
649 B
PHP

<?php
declare(strict_types=1);
namespace KupShop\ComponentsBundle\View;
use KupShop\KupShopBundle\Views\View;
class BaseEntrypointComponentsView extends View implements ComponentsViewInterface
{
use ComponentsViewTrait;
protected string $entrypoint = 'base';
protected $template = 'baseEntrypointComponents.html.twig';
public function getTemplates(): iterable
{
yield $this->getTemplate();
// List all shop templates in modals
foreach (new \FilesystemIterator(__DIR__.'/../../../../web/common/twig/templates/js-menu') as $file) {
yield 'js-menu/'.$file->getFilename();
}
}
}