N°5619 - Hide newsroom menu when no provider

This commit is contained in:
denis.flaven@combodo.com
2022-11-14 18:18:10 +01:00
parent 2a064fd97d
commit 647b669eb9
2 changed files with 7 additions and 1 deletions

View File

@@ -49,6 +49,12 @@ class NewsroomMenuFactory
return $oMenu;
}
public static function HasProviders()
{
$aProviders = MetaModel::EnumPlugins('iNewsroomProvider');
return count($aProviders) > 0;
}
/**
* Prepare parameters for the newsroom JS widget
*