Newscoop\Entity\Article::getTopicNames PHP 메소드

getTopicNames() 공개 메소드

Get topic names.
public getTopicNames ( ) : array
리턴 array
    public function getTopicNames()
    {
        $names = array();
        foreach ($this->topics as $topic) {
            $names[$topic->getTopicId()] = $topic->getName($this->getLanguage());
        }
        return array_filter($names);
    }