plugin/blog/Controller/API/BlogController.php
public function getOptionsAction(Request $request, Blog $blog)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);

        return new JsonResponse($this->blogOptionsSerializer->serialize($blog, $blog->getOptions(), $this->blogManager->getPanelInfos()));
    }
public function getOptionsAction(Request $request, Blog $blog)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);

        return new JsonResponse($this->blogOptionsSerializer->serialize($blog, $blog->getOptions(), $this->blogManager->getPanelInfos()));
    }
public function getOptionsAction ( Request $ request , Blog $ blog ) { $ this -> checkPermission ( 'EDIT' , $ blog -> getResourceNode ( ) , [ ] , true ) ; return new JsonResponse ( $ this -> blogOptionsSerializer -> serialize ( $ blog , $ blog -> getOptions ( ) , $ this -> blogManager -> getPanelInfos ( ) ) ) ; }
Get blog options.

@EXT\Route("options", name="apiv2_blog_options")
@EXT\Method("GET")

@param Blog $blog

@return array
Get blog options .