lib/Backend/EzPublishBackend.php
private function buildItems(SearchResult $searchResult): array
    {
        return array_map(
            function (SearchHit $searchHit): Item {
                return $this->buildItem($searchHit);
            },
            $searchResult->searchHits
        );
    }
private function buildItems(SearchResult $searchResult): array
    {
        return array_map(
            function (SearchHit $searchHit): Item {
                return $this->buildItem($searchHit);
            },
            $searchResult->searchHits
        );
    }
private function buildItems ( SearchResult $ searchResult ) : array { return array_map ( function ( SearchHit $ searchHit ) : Item { return $ this -> buildItem ( $ searchHit ) ; } , $ searchResult -> searchHits ) ; }
Builds the items from search result and its hits.

@return \Netgen\ContentBrowser\Ez\Item\EzPublish\Item[]
Builds the items from search result and its hits .