protected function getCurrentNewsCategories()
    {
        if (!($alias = Input::getAutoItem('items', false, true))
            || null === ($news = NewsModel::findPublishedByParentAndIdOrAlias($alias, $this->news_archives))
        ) {
            return [];
        }

        $ids = Model::getRelatedValues('tl_news', 'categories', $news->id);
        $ids = \array_map('intval', \array_unique($ids));

        return $ids;
    }
protected function getCurrentNewsCategories()
    {
        if (!($alias = Input::getAutoItem('items', false, true))
            || null === ($news = NewsModel::findPublishedByParentAndIdOrAlias($alias, $this->news_archives))
        ) {
            return [];
        }

        $ids = Model::getRelatedValues('tl_news', 'categories', $news->id);
        $ids = \array_map('intval', \array_unique($ids));

        return $ids;
    }
protected function getCurrentNewsCategories ( ) { if ( ! ( $ alias = Input :: getAutoItem ( 'items' , false , true ) ) || null === ( $ news = NewsModel :: findPublishedByParentAndIdOrAlias ( $ alias , $ this -> news_archives ) ) ) { return [ ] ; } $ ids = Model :: getRelatedValues ( 'tl_news' , 'categories' , $ news -> id ) ; $ ids = \ array_map ( 'intval' , \ array_unique ( $ ids ) ) ; return $ ids ; }
Get the category IDs of the current news item.

@return array
Get the category IDs of the current news item .