Newscoop\Article\LinkService::getArticleTopicName PHP Méthode

getArticleTopicName() public méthode

Get article topic name
public getArticleTopicName ( object $article ) : string
$article object
Résultat string
    public function getArticleTopicName($article)
    {
        $topics = $article->getTopicNames();
        return empty($topics) ? null : array_shift($topics);
    }