ForkCMS\Bundle\InstallerBundle\Service\ForkInstaller::getHiddenModules PHP Метод

getHiddenModules() публичный статический Метод

Fetches the hidden modules
public static getHiddenModules ( ) : string[]
Результат string[]
    public static function getHiddenModules()
    {
        return array('Authentication', 'Dashboard', 'Error');
    }

Usage Example

Пример #1
0
 /**
  * Remove the hidden modules from the modules array
  *
  * @param array $modules The modules we wan't to clean up
  */
 protected function removeHiddenModules(&$modules)
 {
     foreach ($modules as $key => $module) {
         if (in_array($module, ForkInstaller::getHiddenModules())) {
             unset($modules[$key]);
         }
     }
 }