public function findAllRootPages()
    {
        $queryBuilder = $this->getQueryBuilder();

        $queryBuilder
            ->select('uid', 'title')
            ->from($this->table)
            ->where(
                $queryBuilder->expr()->neq('pid', -1),
                $queryBuilder->expr()->eq('is_siteroot', 1)
            );


        $this->addDefaultLanguageUidConstraint($queryBuilder);

        return $queryBuilder->execute()->fetchAll();
    }
public function findAllRootPages()
    {
        $queryBuilder = $this->getQueryBuilder();

        $queryBuilder
            ->select('uid', 'title')
            ->from($this->table)
            ->where(
                $queryBuilder->expr()->neq('pid', -1),
                $queryBuilder->expr()->eq('is_siteroot', 1)
            );


        $this->addDefaultLanguageUidConstraint($queryBuilder);

        return $queryBuilder->execute()->fetchAll();
    }
public function findAllRootPages ( ) { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ queryBuilder -> select ( 'uid' , 'title' ) -> from ( $ this -> table ) -> where ( $ queryBuilder -> expr ( ) -> neq ( 'pid' , - 1 ) , $ queryBuilder -> expr ( ) -> eq ( 'is_siteroot' , 1 ) ) ; $ this -> addDefaultLanguageUidConstraint ( $ queryBuilder ) ; return $ queryBuilder -> execute ( ) -> fetchAll ( ) ; }
Gets the site's root pages. The "Is root of website" flag must be set,
which usually is the case for pages with pid = 0.

@return array An array of (partial) root page records, containing the uid and title fields
Gets the site s root pages . The Is root of website flag must be set which usually is the case for pages with pid = 0 .