Classes/TcaDataGenerator/RecordFinder.php
public function findUidsOfDemoLanguages(): array
    {
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_language');
        $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
        $rows = $queryBuilder->select('uid')
            ->from('sys_language')
            ->where(
                $queryBuilder->expr()->eq(
                    'tx_styleguide_isdemorecord',
                    $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)
                )
            )
            ->execute()
            ->fetchAll();
        $result = [];
        if (is_array($rows)) {
            foreach ($rows as $row) {
                $result[] = $row['uid'];
            }
        }
        return $result;
    }
public function findUidsOfDemoLanguages(): array
    {
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_language');
        $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
        $rows = $queryBuilder->select('uid')
            ->from('sys_language')
            ->where(
                $queryBuilder->expr()->eq(
                    'tx_styleguide_isdemorecord',
                    $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)
                )
            )
            ->execute()
            ->fetchAll();
        $result = [];
        if (is_array($rows)) {
            foreach ($rows as $row) {
                $result[] = $row['uid'];
            }
        }
        return $result;
    }
public function findUidsOfDemoLanguages ( ) : array { $ queryBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( 'sys_language' ) ; $ queryBuilder -> getRestrictions ( ) -> removeAll ( ) -> add ( GeneralUtility :: makeInstance ( DeletedRestriction :: class ) ) ; $ rows = $ queryBuilder -> select ( 'uid' ) -> from ( 'sys_language' ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'tx_styleguide_isdemorecord' , $ queryBuilder -> createNamedParameter ( 1 , \ PDO :: PARAM_INT ) ) ) -> execute ( ) -> fetchAll ( ) ; $ result = [ ] ; if ( is_array ( $ rows ) ) { foreach ( $ rows as $ row ) { $ result [ ] = $ row [ 'uid' ] ; } } return $ result ; }
Find uids of styleguide demo sys_language`s

@return array List of uids
Find uids of styleguide demo sys_language s