Classes/TcaDataGenerator/RecordFinder.php
public function findUidsOfStyleguideEntryPages(): array
    {
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
        $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
        $rows = $queryBuilder->select('uid')
            ->from('pages')
            ->where(
                $queryBuilder->expr()->eq(
                    'pid',
                    $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
                ),
                $queryBuilder->expr()->eq(
                    'tx_styleguide_containsdemo',
                    $queryBuilder->createNamedParameter('tx_styleguide', \PDO::PARAM_STR)
                )
            )
            ->execute()
            ->fetchAll();
        $uids = [];
        if (is_array($rows)) {
            foreach ($rows as $row) {
                $uids[] = (int)$row['uid'];
            }
        }
        return $uids;
    }
public function findUidsOfStyleguideEntryPages(): array
    {
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
        $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
        $rows = $queryBuilder->select('uid')
            ->from('pages')
            ->where(
                $queryBuilder->expr()->eq(
                    'pid',
                    $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
                ),
                $queryBuilder->expr()->eq(
                    'tx_styleguide_containsdemo',
                    $queryBuilder->createNamedParameter('tx_styleguide', \PDO::PARAM_STR)
                )
            )
            ->execute()
            ->fetchAll();
        $uids = [];
        if (is_array($rows)) {
            foreach ($rows as $row) {
                $uids[] = (int)$row['uid'];
            }
        }
        return $uids;
    }
public function findUidsOfStyleguideEntryPages ( ) : array { $ queryBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( 'pages' ) ; $ queryBuilder -> getRestrictions ( ) -> removeAll ( ) -> add ( GeneralUtility :: makeInstance ( DeletedRestriction :: class ) ) ; $ rows = $ queryBuilder -> select ( 'uid' ) -> from ( 'pages' ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'pid' , $ queryBuilder -> createNamedParameter ( 0 , \ PDO :: PARAM_INT ) ) , $ queryBuilder -> expr ( ) -> eq ( 'tx_styleguide_containsdemo' , $ queryBuilder -> createNamedParameter ( 'tx_styleguide' , \ PDO :: PARAM_STR ) ) ) -> execute ( ) -> fetchAll ( ) ; $ uids = [ ] ; if ( is_array ( $ rows ) ) { foreach ( $ rows as $ row ) { $ uids [ ] = ( int ) $ row [ 'uid' ] ; } } return $ uids ; }
Returns a uid list of existing styleguide demo top level pages.
These are pages with pid=0 and tx_styleguide_containsdemo set to 'tx_styleguide'.
This can be multiple pages if "create" button was clicked multiple times without "delete" in between.

@return array
Returns a uid list of existing styleguide demo top level pages . These are pages with pid = 0 and tx_styleguide_containsdemo set to tx_styleguide . This can be multiple pages if create button was clicked multiple times without delete in between .