private function fillQueryData($queryIds)
    {
        $data = [];

        $collection  = $this->queryCollection->addFieldToFilter('query_id', $queryIds);
        $yesNoValues = $this->yesNo->toArray();

        foreach ($collection as $query) {
            $data[] = [
                'id'              => $query->getId(),
                'query_text'      => $query->getQueryText(),
                'is_spellchecked' => $yesNoValues[(int) $query->getIsSpellchecked()],
            ];
        }

        return $data;
    }
private function fillQueryData($queryIds)
    {
        $data = [];

        $collection  = $this->queryCollection->addFieldToFilter('query_id', $queryIds);
        $yesNoValues = $this->yesNo->toArray();

        foreach ($collection as $query) {
            $data[] = [
                'id'              => $query->getId(),
                'query_text'      => $query->getQueryText(),
                'is_spellchecked' => $yesNoValues[(int) $query->getIsSpellchecked()],
            ];
        }

        return $data;
    }
private function fillQueryData ( $ queryIds ) { $ data = [ ] ; $ collection = $ this -> queryCollection -> addFieldToFilter ( 'query_id' , $ queryIds ) ; $ yesNoValues = $ this -> yesNo -> toArray ( ) ; foreach ( $ collection as $ query ) { $ data [ ] = [ 'id' => $ query -> getId ( ) , 'query_text' => $ query -> getQueryText ( ) , 'is_spellchecked' => $ yesNoValues [ ( int ) $ query -> getIsSpellchecked ( ) ] , ] ; } return $ data ; }
Get query data to fill the dynamicRows in Ui Component Form.

@param integer[] $queryIds The query ids

@return array
Get query data to fill the dynamicRows in Ui Component Form .