protected static function isAsset(PackageInterface $package)
    {
        foreach (Assets::getTypes() as $type) {
            $type = Assets::createType($type);

            if ($package->getType() === $type->getComposerType()) {
                return true;
            }
        }

        return false;
    }
protected static function isAsset(PackageInterface $package)
    {
        foreach (Assets::getTypes() as $type) {
            $type = Assets::createType($type);

            if ($package->getType() === $type->getComposerType()) {
                return true;
            }
        }

        return false;
    }
protected static function isAsset ( PackageInterface $ package ) { foreach ( Assets :: getTypes ( ) as $ type ) { $ type = Assets :: createType ( $ type ) ; if ( $ package -> getType ( ) === $ type -> getComposerType ( ) ) { return true ; } } return false ; }
Check if the package is a asset package.

@param PackageInterface $package The package instance

@return bool
Check if the package is a asset package .