concrete/src/Page/PageList.php
public function filterByPath($path, $includeAllChildren = true)
    {
        if (!$includeAllChildren) {
            $this->query->andWhere('pp.cPath = :cPath');
            $this->query->setParameter('cPath', $path);
        } else {
            $this->query->andWhere(
                $this->query->expr()->like('pp.cPath', ':cPath')
            );
            $this->query->setParameter('cPath', $path . '/%');
        }
        $this->query->andWhere('pp.ppIsCanonical = 1');
    }
public function filterByPath($path, $includeAllChildren = true)
    {
        if (!$includeAllChildren) {
            $this->query->andWhere('pp.cPath = :cPath');
            $this->query->setParameter('cPath', $path);
        } else {
            $this->query->andWhere(
                $this->query->expr()->like('pp.cPath', ':cPath')
            );
            $this->query->setParameter('cPath', $path . '/%');
        }
        $this->query->andWhere('pp.ppIsCanonical = 1');
    }
public function filterByPath ( $ path , $ includeAllChildren = true ) { if ( ! $ includeAllChildren ) { $ this -> query -> andWhere ( 'pp.cPath = :cPath' ) ; $ this -> query -> setParameter ( 'cPath' , $ path ) ; } else { $ this -> query -> andWhere ( $ this -> query -> expr ( ) -> like ( 'pp.cPath' , ':cPath' ) ) ; $ this -> query -> setParameter ( 'cPath' , $ path . '/%' ) ; } $ this -> query -> andWhere ( 'pp.ppIsCanonical = 1' ) ; }
Filter a list by page path.

@param $path
@param bool $includeAllChildren
Filter a list by page path .