src/helpers/Manifest.php
public static function getModuleEntry(array $config, string $moduleName, string $type = 'modern', bool $soft = false)
    {
        $module = null;
        // Get the manifest file
        $manifest = self::getManifestFile($config, $type);
        if ($manifest !== null) {
            // Make sure it exists in the manifest
            if (empty($manifest[$moduleName])) {
                self::reportError(Craft::t(
                    'twigpack',
                    'Module does not exist in the manifest: {moduleName}',
                    ['moduleName' => $moduleName]
                ), $soft);

                return null;
            }
            $module = $manifest[$moduleName];
        }

        return $module;
    }
public static function getModuleEntry(array $config, string $moduleName, string $type = 'modern', bool $soft = false)
    {
        $module = null;
        // Get the manifest file
        $manifest = self::getManifestFile($config, $type);
        if ($manifest !== null) {
            // Make sure it exists in the manifest
            if (empty($manifest[$moduleName])) {
                self::reportError(Craft::t(
                    'twigpack',
                    'Module does not exist in the manifest: {moduleName}',
                    ['moduleName' => $moduleName]
                ), $soft);

                return null;
            }
            $module = $manifest[$moduleName];
        }

        return $module;
    }
public static function getModuleEntry ( array $ config , string $ moduleName , string $ type = 'modern' , bool $ soft = false ) { $ module = null ; // Get the manifest file $ manifest = self :: getManifestFile ( $ config , $ type ) ; if ( $ manifest !== null ) { // Make sure it exists in the manifest if ( empty ( $ manifest [ $ moduleName ] ) ) { self :: reportError ( Craft :: t ( 'twigpack' , 'Module does not exist in the manifest: {moduleName}' , [ 'moduleName' => $ moduleName ] ) , $ soft ) ; return null ; } $ module = $ manifest [ $ moduleName ] ; } return $ module ; }
Return a module's raw entry from the manifest

@param array  $config
@param string $moduleName
@param string $type
@param bool   $soft

@return null|string
@throws NotFoundHttpException
Return a module s raw entry from the manifest