Neos.ContentRepository/Classes/Domain/Repository/NodeDataRepository.php
public function addNodeTypeFilterConstraintsToQueryBuilder(QueryBuilder $queryBuilder, $nodeTypeFilter)
    {
        $constraints = $this->getNodeTypeFilterConstraintsForDql($nodeTypeFilter);
        if (count($constraints['includeNodeTypes']) > 0) {
            $queryBuilder->andWhere('n.nodeType IN (:includeNodeTypes)')
                ->setParameter('includeNodeTypes', $constraints['includeNodeTypes']);
        }
        if (count($constraints['excludeNodeTypes']) > 0) {
            $queryBuilder->andWhere('n.nodeType NOT IN (:excludeNodeTypes)')
                ->setParameter('excludeNodeTypes', $constraints['excludeNodeTypes']);
        }
    }
public function addNodeTypeFilterConstraintsToQueryBuilder(QueryBuilder $queryBuilder, $nodeTypeFilter)
    {
        $constraints = $this->getNodeTypeFilterConstraintsForDql($nodeTypeFilter);
        if (count($constraints['includeNodeTypes']) > 0) {
            $queryBuilder->andWhere('n.nodeType IN (:includeNodeTypes)')
                ->setParameter('includeNodeTypes', $constraints['includeNodeTypes']);
        }
        if (count($constraints['excludeNodeTypes']) > 0) {
            $queryBuilder->andWhere('n.nodeType NOT IN (:excludeNodeTypes)')
                ->setParameter('excludeNodeTypes', $constraints['excludeNodeTypes']);
        }
    }
public function addNodeTypeFilterConstraintsToQueryBuilder ( QueryBuilder $ queryBuilder , $ nodeTypeFilter ) { $ constraints = $ this -> getNodeTypeFilterConstraintsForDql ( $ nodeTypeFilter ) ; if ( count ( $ constraints [ 'includeNodeTypes' ] ) > 0 ) { $ queryBuilder -> andWhere ( 'n.nodeType IN (:includeNodeTypes)' ) -> setParameter ( 'includeNodeTypes' , $ constraints [ 'includeNodeTypes' ] ) ; } if ( count ( $ constraints [ 'excludeNodeTypes' ] ) > 0 ) { $ queryBuilder -> andWhere ( 'n.nodeType NOT IN (:excludeNodeTypes)' ) -> setParameter ( 'excludeNodeTypes' , $ constraints [ 'excludeNodeTypes' ] ) ; } }
Add node type filter constraints to the query builder

@param QueryBuilder $queryBuilder
@param string $nodeTypeFilter
@return void
Add node type filter constraints to the query builder