Smile\ElasticsuiteCatalog\Observer\RedirectIfOneResult::addRedirectMessage PHP Метод

addRedirectMessage() приватный Метод

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