code: public static function getActive()
  	{
  		@trigger_error('Using ModuleLoader::getActive() has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
  
  		$bundles = array_keys(System::getContainer()->getParameter('kernel.bundles'));
  
  		foreach (static::$legacy as $bundleName => $module)
  		{
  			if (\in_array($bundleName, $bundles))
  			{
  				$bundles[] = $module;
  			}
  		}
  
  		return $bundles;
  	}
docs: Return the active modules as array
  
  @return array An array of active modules
  
  @deprecated Deprecated since Contao 4.0, to be removed in Contao 5.