public function publishDraft( Content $content )
    {
        $this->getRepository()->sudo(
            function(Repository $repository) use ( $content )
            {
                $repository->getContentService()->publishVersion($content->versionInfo->id);
            }
        );
    }
public function publishDraft( Content $content )
    {
        $this->getRepository()->sudo(
            function(Repository $repository) use ( $content )
            {
                $repository->getContentService()->publishVersion($content->versionInfo->id);
            }
        );
    }
public function publishDraft ( Content $ content ) { $ this -> getRepository ( ) -> sudo ( function ( Repository $ repository ) use ( $ content ) { $ repository -> getContentService ( ) -> publishVersion ( $ content -> versionInfo -> id ) ; } ) ; }
Publishes a content draft.

@param Content $content
Publishes a content draft .