private function getMerchandiserUrl($term)
    {
        $url = null;

        $query = $this->queryFactory->create();
        $query->loadByQueryText($term);
        if ($query->getId()) {
            $url = $this->getUrl('search/term/edit', ['id' => $query->getId()]);
        }

        return $url;
    }
private function getMerchandiserUrl($term)
    {
        $url = null;

        $query = $this->queryFactory->create();
        $query->loadByQueryText($term);
        if ($query->getId()) {
            $url = $this->getUrl('search/term/edit', ['id' => $query->getId()]);
        }

        return $url;
    }
private function getMerchandiserUrl ( $ term ) { $ url = null ; $ query = $ this -> queryFactory -> create ( ) ; $ query -> loadByQueryText ( $ term ) ; if ( $ query -> getId ( ) ) { $ url = $ this -> getUrl ( 'search/term/edit' , [ 'id' => $ query -> getId ( ) ] ) ; } return $ url ; }
Get the term merchandiser URL for a given search term.

@param string $term Search term.

@return null|string
Get the term merchandiser URL for a given search term .