private function addRedirectMessage(ProductInterface $product)
    {
        $message = __("%1 is the only product matching your '%2' search.", $product->getName(), $this->helper->getEscapedQueryText());
        $this->messageManager->addSuccessMessage($message);
    }
private function addRedirectMessage(ProductInterface $product)
    {
        $message = __("%1 is the only product matching your '%2' search.", $product->getName(), $this->helper->getEscapedQueryText());
        $this->messageManager->addSuccessMessage($message);
    }
private function addRedirectMessage ( ProductInterface $ product ) { $ message = __ ( "%1 is the only product matching your '%2' search." , $ product -> getName ( ) , $ this -> helper -> getEscapedQueryText ( ) ) ; $ this -> messageManager -> addSuccessMessage ( $ message ) ; }
Append message to the customer session to inform he has been redirected

@param \Magento\Catalog\Api\Data\ProductInterface $product The product being redirected to.
Append message to the customer session to inform he has been redirected