private function releaseDraft($content)
    {
        $draft = null;
        if (
                $content instanceof AbstractClassContent
                && (null !== $draft = $content->getDraft())
        ) {
            $content->releaseDraft();
        }

        return $draft;
    }
private function releaseDraft($content)
    {
        $draft = null;
        if (
                $content instanceof AbstractClassContent
                && (null !== $draft = $content->getDraft())
        ) {
            $content->releaseDraft();
        }

        return $draft;
    }
private function releaseDraft ( $ content ) { $ draft = null ; if ( $ content instanceof AbstractClassContent && ( null !== $ draft = $ content -> getDraft ( ) ) ) { $ content -> releaseDraft ( ) ; } return $ draft ; }
Release content draft and returns it.

@param  AbstractClassContent $content

@return Revision|NULL
Release content draft and returns it .