private function format($result, $count, $offset, $limit)
    {
        $nodes = [];
        foreach ($result as $item) {
            $resource = $this->getResource($item);
            $data = $this->getResourceData($resource);
            if ($data) {
                $nodes[] = $data;
            }
        }
        return [
            'total'  => $count,
            'offset' => $offset,
            'limit'  => $limit,
            'nodes'  => $nodes
        ];
    }
private function format($result, $count, $offset, $limit)
    {
        $nodes = [];
        foreach ($result as $item) {
            $resource = $this->getResource($item);
            $data = $this->getResourceData($resource);
            if ($data) {
                $nodes[] = $data;
            }
        }
        return [
            'total'  => $count,
            'offset' => $offset,
            'limit'  => $limit,
            'nodes'  => $nodes
        ];
    }
private function format ( $ result , $ count , $ offset , $ limit ) { $ nodes = [ ] ; foreach ( $ result as $ item ) { $ resource = $ this -> getResource ( $ item ) ; $ data = $ this -> getResourceData ( $ resource ) ; if ( $ data ) { $ nodes [ ] = $ data ; } } return [ 'total' => $ count , 'offset' => $ offset , 'limit' => $ limit , 'nodes' => $ nodes ] ; }
Format the results according to the needs of ListLookup
@param array $result
@param int $count
@param int $offset
@param int $limit
@return array
Format the results according to the needs of ListLookup