Cleanup: moved HasProvider() out of the Factory

This commit is contained in:
denis.flaven@combodo.com
2023-04-06 14:49:45 +02:00
parent 1982771c28
commit c5640db511
4 changed files with 15 additions and 13 deletions

View File

@@ -49,16 +49,6 @@ class NewsroomMenuFactory
return $oMenu;
}
/**
* Check if there is any Newsroom provider configured
* @return boolean
*/
public static function HasProviders()
{
$aProviders = MetaModel::EnumPlugins('iNewsroomProvider');
return count($aProviders) > 0;
}
/**
* Prepare parameters for the newsroom JS widget
*