src/Component/Frontend/RecipeSlugRemoveModal/RecipeSlugRemoveModal.php
public function handleRemove(int $id) : void
    {
        if ($this->presenter->isAjax() && $this->presenter->user->isAllowed(StructureAuthorizator::RES_RECIPE_SLUG_REMOVE_MODAL))
        {
            $this->recipeSlugEntity = $this->recipeSlugRepository->findOneById($id);

            $this->recipeSlugManager->delete($this->recipeSlugEntity);

            $this->presenter->notificationAjax(
                'Slug odstraněn',
                "Slug '{$this->recipeSlugEntity->getSlug()}' byl úspěšně odstraněn.",
                'success',
                FALSE
            );

            $this->presenter->handleModalToggle('hide', '#wakers_structure_recipe_slug_remove_modal', FALSE);

            $this->onRemove();
        }
    }
public function handleRemove(int $id) : void
    {
        if ($this->presenter->isAjax() && $this->presenter->user->isAllowed(StructureAuthorizator::RES_RECIPE_SLUG_REMOVE_MODAL))
        {
            $this->recipeSlugEntity = $this->recipeSlugRepository->findOneById($id);

            $this->recipeSlugManager->delete($this->recipeSlugEntity);

            $this->presenter->notificationAjax(
                'Slug odstraněn',
                "Slug '{$this->recipeSlugEntity->getSlug()}' byl úspěšně odstraněn.",
                'success',
                FALSE
            );

            $this->presenter->handleModalToggle('hide', '#wakers_structure_recipe_slug_remove_modal', FALSE);

            $this->onRemove();
        }
    }
Handler pro odstranění
@param int $id
@throws \Exception