plugin/blog/Controller/API/BlogController.php
public function updateOptionsAction(Request $request, Blog $blog)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);
        $data = json_decode($request->getContent(), true);
        $this->blogManager->updateOptions($blog, $this->blogOptionsSerializer->deserialize($data), $data['infos']);

        return new JsonResponse($this->blogOptionsSerializer->serialize($blog, $blog->getOptions()));
    }
public function updateOptionsAction(Request $request, Blog $blog)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);
        $data = json_decode($request->getContent(), true);
        $this->blogManager->updateOptions($blog, $this->blogOptionsSerializer->deserialize($data), $data['infos']);

        return new JsonResponse($this->blogOptionsSerializer->serialize($blog, $blog->getOptions()));
    }
public function updateOptionsAction ( Request $ request , Blog $ blog ) { $ this -> checkPermission ( 'EDIT' , $ blog -> getResourceNode ( ) , [ ] , true ) ; $ data = json_decode ( $ request -> getContent ( ) , true ) ; $ this -> blogManager -> updateOptions ( $ blog , $ this -> blogOptionsSerializer -> deserialize ( $ data ) , $ data [ 'infos' ] ) ; return new JsonResponse ( $ this -> blogOptionsSerializer -> serialize ( $ blog , $ blog -> getOptions ( ) ) ) ; }
Update blog options.

@EXT\Route("options/update", name="apiv2_blog_options_update")
@EXT\Method("PUT")

@param Blog $blog

@return array
Update blog options .