public function getPagesRoutes()
    {
        $qb = $this->createQueryBuilder('p');

        $results = $qb
            ->select('p.route')
            ->getQuery()
            ->getScalarResult();

        return array_column($results, 'route');
    }
public function getPagesRoutes()
    {
        $qb = $this->createQueryBuilder('p');

        $results = $qb
            ->select('p.route')
            ->getQuery()
            ->getScalarResult();

        return array_column($results, 'route');
    }
public function getPagesRoutes ( ) { $ qb = $ this -> createQueryBuilder ( 'p' ) ; $ results = $ qb -> select ( 'p.route' ) -> getQuery ( ) -> getScalarResult ( ) ; return array_column ( $ results , 'route' ) ; }
Returns the pages routes.

@return array
Returns the pages routes .