lib/Collection/Result/DynamicCollectionRunner.php
private function buildManualResult(CollectionItem $collectionItem, Iterator $queryIterator): ?Result
    {
        if (!$this->visibilityResolver->isVisible($collectionItem) || !$collectionItem->isValid()) {
            $queryValue = $this->getQueryValue($queryIterator);
            if (!$queryValue instanceof CmsItemInterface) {
                return null;
            }

            return new Result($collectionItem->getPosition(), $queryValue, new ManualItem($collectionItem));
        }

        return new Result($collectionItem->getPosition(), new ManualItem($collectionItem));
    }
private function buildManualResult(CollectionItem $collectionItem, Iterator $queryIterator): ?Result
    {
        if (!$this->visibilityResolver->isVisible($collectionItem) || !$collectionItem->isValid()) {
            $queryValue = $this->getQueryValue($queryIterator);
            if (!$queryValue instanceof CmsItemInterface) {
                return null;
            }

            return new Result($collectionItem->getPosition(), $queryValue, new ManualItem($collectionItem));
        }

        return new Result($collectionItem->getPosition(), new ManualItem($collectionItem));
    }
private function buildManualResult ( CollectionItem $ collectionItem , Iterator $ queryIterator ) : ? Result { if ( ! $ this -> visibilityResolver -> isVisible ( $ collectionItem ) || ! $ collectionItem -> isValid ( ) ) { $ queryValue = $ this -> getQueryValue ( $ queryIterator ) ; if ( ! $ queryValue instanceof CmsItemInterface ) { return null ; } return new Result ( $ collectionItem -> getPosition ( ) , $ queryValue , new ManualItem ( $ collectionItem ) ) ; } return new Result ( $ collectionItem -> getPosition ( ) , new ManualItem ( $ collectionItem ) ) ; }
Builds the result from a manual item.

When manual items are invisible or invalid, they are pushed to the subitem role,
and the item which is displayed is the next query value.
Builds the result from a manual item .