Ojs\ApiBundle\Controller\Admin\PublisherThemeRestController::deletePublisherthemeAction PHP 메소드

deletePublisherthemeAction() 공개 메소드

public deletePublisherthemeAction ( $id ) : Response
$id
리턴 Response
    public function deletePublisherthemeAction($id)
    {
        $entity = $this->getOr404($id);
        if (!$this->isGranted('DELETE', $entity)) {
            throw new AccessDeniedException();
        }
        $this->container->get('ojs_api.publisher_theme.handler')->delete($entity);
        return $this->view(null, Codes::HTTP_NO_CONTENT, []);
    }