public static function isAsset(PackageInterface $package, array $configPackages = array())
    {
        $projectConfig = self::getProjectActivation($package, $configPackages);
        $enabled = false !== $projectConfig;

        return $enabled && (static::hasExtraActivation($package)
            || static::hasPluginDependency($package->getRequires())
            || static::hasPluginDependency($package->getDevRequires())
            || true === $projectConfig);
    }
public static function isAsset(PackageInterface $package, array $configPackages = array())
    {
        $projectConfig = self::getProjectActivation($package, $configPackages);
        $enabled = false !== $projectConfig;

        return $enabled && (static::hasExtraActivation($package)
            || static::hasPluginDependency($package->getRequires())
            || static::hasPluginDependency($package->getDevRequires())
            || true === $projectConfig);
    }
public static function isAsset ( PackageInterface $ package , array $ configPackages = array ( ) ) { $ projectConfig = self :: getProjectActivation ( $ package , $ configPackages ) ; $ enabled = false !== $ projectConfig ; return $ enabled && ( static :: hasExtraActivation ( $ package ) || static :: hasPluginDependency ( $ package -> getRequires ( ) ) || static :: hasPluginDependency ( $ package -> getDevRequires ( ) ) || true === $ projectConfig ) ; }
Check if the package is available for Foxy.

@param PackageInterface $package        The package
@param array            $configPackages The packages defined in config

@return bool
Check if the package is available for Foxy .