src/Component/Frontend/RecipeSlugModal/RecipeSlugModal.php
public function render() : void
    {
        $slugs = [];

        if ($this->recipeId)
        {
            $slugs = $this->recipeSlugRepository->findByRecipeId($this->recipeId);
        }

        $this->template->slugs = $slugs;
        $this->template->setFile(__DIR__ . '/templates/recipeSlugModal.latte');
        $this->template->render();
    }
public function render() : void
    {
        $slugs = [];

        if ($this->recipeId)
        {
            $slugs = $this->recipeSlugRepository->findByRecipeId($this->recipeId);
        }

        $this->template->slugs = $slugs;
        $this->template->setFile(__DIR__ . '/templates/recipeSlugModal.latte');
        $this->template->render();
    }
Render