concrete/src/Package/PackageService.php
public function getInstalledHandles()
    {
        $query = 'select p.pkgHandle from \\Concrete\\Core\\Entity\\Package p';
        $r = $this->entityManager->createQuery($query);
        $result = $r->getArrayResult();
        $handles = [];
        foreach ($result as $r) {
            $handles[] = $r['pkgHandle'];
        }

        return $handles;
    }
public function getInstalledHandles()
    {
        $query = 'select p.pkgHandle from \\Concrete\\Core\\Entity\\Package p';
        $r = $this->entityManager->createQuery($query);
        $result = $r->getArrayResult();
        $handles = [];
        foreach ($result as $r) {
            $handles[] = $r['pkgHandle'];
        }

        return $handles;
    }
public function getInstalledHandles ( ) { $ query = 'select p.pkgHandle from \\Concrete\\Core\\Entity\\Package p' ; $ r = $ this -> entityManager -> createQuery ( $ query ) ; $ result = $ r -> getArrayResult ( ) ; $ handles = [ ] ; foreach ( $ result as $ r ) { $ handles [ ] = $ r [ 'pkgHandle' ] ; } return $ handles ; }
Get the handles of all the installed packages.

@return string[]
Get the handles of all the installed packages .