src/Entity/SnapshotManager.php
public function getPageByName($routeName)
    {
        @trigger_error(
            'The '.__METHOD__.' method is deprecated since version 3.2 and will be removed in 4.0.',
            E_USER_DEPRECATED
        );

        $snapshots = $this->getEntityManager()->createQueryBuilder()
            ->select('s')
            ->from($this->class, 's')
            ->where('s.routeName = :routeName')
            ->setParameters([
                'routeName' => $routeName,
            ])
            ->getQuery()
            ->execute();

        $snapshot = \count($snapshots) > 0 ? $snapshots[0] : false;

        if ($snapshot) {
            return new SnapshotPageProxy($this, $snapshot);
        }

        return false;
    }
public function getPageByName($routeName)
    {
        @trigger_error(
            'The '.__METHOD__.' method is deprecated since version 3.2 and will be removed in 4.0.',
            E_USER_DEPRECATED
        );

        $snapshots = $this->getEntityManager()->createQueryBuilder()
            ->select('s')
            ->from($this->class, 's')
            ->where('s.routeName = :routeName')
            ->setParameters([
                'routeName' => $routeName,
            ])
            ->getQuery()
            ->execute();

        $snapshot = \count($snapshots) > 0 ? $snapshots[0] : false;

        if ($snapshot) {
            return new SnapshotPageProxy($this, $snapshot);
        }

        return false;
    }
public function getPageByName ( $ routeName ) { @ trigger_error ( 'The ' . __METHOD__ . ' method is deprecated since version 3.2 and will be removed in 4.0.' , E_USER_DEPRECATED ) ; $ snapshots = $ this -> getEntityManager ( ) -> createQueryBuilder ( ) -> select ( 's' ) -> from ( $ this -> class , 's' ) -> where ( 's.routeName = :routeName' ) -> setParameters ( [ 'routeName' => $ routeName , ] ) -> getQuery ( ) -> execute ( ) ; $ snapshot = \ count ( $ snapshots ) > 0 ? $ snapshots [ 0 ] : false ; if ( $ snapshot ) { return new SnapshotPageProxy ( $ this , $ snapshot ) ; } return false ; }
return a page with the given routeName.

@param string $routeName

@return PageInterface|false

@deprecated since 3.2, to be removed in 4.0
return a page with the given routeName .