public function getVariables()
    {
        $variables = ['search.query' => $this->catalogSearchData->getEscapedQueryText()];

        if ($layer = $this->catalogLayer) {
            $productCollection = $layer->getProductCollection();
            $variables['search.is_spellchecked'] = (int) $productCollection->isSpellchecked();
        }

        return $variables;
    }
public function getVariables()
    {
        $variables = ['search.query' => $this->catalogSearchData->getEscapedQueryText()];

        if ($layer = $this->catalogLayer) {
            $productCollection = $layer->getProductCollection();
            $variables['search.is_spellchecked'] = (int) $productCollection->isSpellchecked();
        }

        return $variables;
    }
public function getVariables ( ) { $ variables = [ 'search.query' => $ this -> catalogSearchData -> getEscapedQueryText ( ) ] ; if ( $ layer = $ this -> catalogLayer ) { $ productCollection = $ layer -> getProductCollection ( ) ; $ variables [ 'search.is_spellchecked' ] = ( int ) $ productCollection -> isSpellchecked ( ) ; } return $ variables ; }
Append the user fulltext query to the tracked variables list

@return array
Append the user fulltext query to the tracked variables list