public function renderContents(Article $article, $name)
    {
        $content = $article->getContent($name);

        return $content ? $content->getContents() : null;
    }
public function renderContents(Article $article, $name)
    {
        $content = $article->getContent($name);

        return $content ? $content->getContents() : null;
    }
public function renderContents ( Article $ article , $ name ) { $ content = $ article -> getContent ( $ name ) ; return $ content ? $ content -> getContents ( ) : null ; }
Render an Article content

@author Vincent Chalamon <vincentchalamon@gmail.com>

@param Article $article Article object
@param string  $name    Contents name

@return null|string
Render an Article content