public static function getBundle(string $bundleId)
    {
        if (!array_key_exists($bundleId, self::$runtimeBundles)) {
            return null;
        }
        
        $bundle = &self::$runtimeBundles[$bundleId];
        $bundle->link = Request::getLocationUrl(Output::DEFAULT_BUNDLE_PATH_PREFIX . '/' . $bundleId);
        if (empty($bundle->directory)) {
            $bundle->directory = Xentriq::getActiveContentDirectory();
        }
        
        return $bundle;
    }
public static function getBundle(string $bundleId)
    {
        if (!array_key_exists($bundleId, self::$runtimeBundles)) {
            return null;
        }
        
        $bundle = &self::$runtimeBundles[$bundleId];
        $bundle->link = Request::getLocationUrl(Output::DEFAULT_BUNDLE_PATH_PREFIX . '/' . $bundleId);
        if (empty($bundle->directory)) {
            $bundle->directory = Xentriq::getActiveContentDirectory();
        }
        
        return $bundle;
    }
public static function getBundle ( string $ bundleId ) { if ( ! array_key_exists ( $ bundleId , self :: $ runtimeBundles ) ) { return null ; } $ bundle = & self :: $ runtimeBundles [ $ bundleId ] ; $ bundle -> link = Request :: getLocationUrl ( Output :: DEFAULT_BUNDLE_PATH_PREFIX . '/' . $ bundleId ) ; if ( empty ( $ bundle -> directory ) ) { $ bundle -> directory = Xentriq :: getActiveContentDirectory ( ) ; } return $ bundle ; }
Retrieve a bundle.

@param string $bundleId
Identifier of the bundle to retrieve.

@return mixed Bundle for the given identifier.
Retrieve a bundle .