news-bundle/src/Resources/contao/modules/ModuleNews.php
protected function generateNewsUrl($objItem, $blnAddArchive=false)
	{
		@trigger_error('Using ModuleNews::generateNewsUrl() has been deprecated and will no longer work in Contao 5.0. Use News::generateNewsUrl() instead.', E_USER_DEPRECATED);

		return News::generateNewsUrl($objItem, $blnAddArchive);
	}
protected function generateNewsUrl($objItem, $blnAddArchive=false)
	{
		@trigger_error('Using ModuleNews::generateNewsUrl() has been deprecated and will no longer work in Contao 5.0. Use News::generateNewsUrl() instead.', E_USER_DEPRECATED);

		return News::generateNewsUrl($objItem, $blnAddArchive);
	}
Generate a URL and return it as string

@param NewsModel $objItem
@param boolean   $blnAddArchive

@return string

@deprecated Deprecated since Contao 4.1, to be removed in Contao 5.
Use News::generateNewsUrl() instead.