code: public function getNewsArchives()
  	{
  		if (!$this->User->isAdmin && !\is_array($this->User->news))
  		{
  			return array();
  		}
  
  		$arrArchives = array();
  		$objArchives = $this->Database->execute("SELECT id, title FROM tl_news_archive ORDER BY title");
  
  		while ($objArchives->next())
  		{
  			if ($this->User->hasAccess($objArchives->id, 'news'))
  			{
  				$arrArchives[$objArchives->id] = $objArchives->title;
  			}
  		}
  
  		return $arrArchives;
  	}
docs: Get all news archives and return them as array
  
  @return array