public function getDraftAction($type, $uid)
    {
        $this->granted('VIEW', $content = $this->getClassContentByTypeAndUid($type, $uid));

        return $this->createJsonResponse($this->getClassContentManager()->getDraft($content));
    }
public function getDraftAction($type, $uid)
    {
        $this->granted('VIEW', $content = $this->getClassContentByTypeAndUid($type, $uid));

        return $this->createJsonResponse($this->getClassContentManager()->getDraft($content));
    }
public function getDraftAction ( $ type , $ uid ) { $ this -> granted ( 'VIEW' , $ content = $ this -> getClassContentByTypeAndUid ( $ type , $ uid ) ) ; return $ this -> createJsonResponse ( $ this -> getClassContentManager ( ) -> getDraft ( $ content ) ) ; }
ClassContent's draft getter.

@param string $type type of the class content (ex: Element/text)
@param string $uid  identifier of the class content

@return Symfony\Component\HttpFoundation\JsonResponse

@Rest\Security("is_fully_authenticated() & has_role('ROLE_API_USER')")
ClassContent s draft getter .