Smile\ElasticsuiteCatalog\Model\Layer\Filter\Price::_renderRangeLabel PHP Method

_renderRangeLabel() protected method

protected _renderRangeLabel ( $fromPrice, $toPrice )
    protected function _renderRangeLabel($fromPrice, $toPrice)
    {
        $formattedPrice = $this->priceCurrency->format($fromPrice);
        if ($toPrice === '') {
            $formattedPrice = __('%1 and above', $formattedPrice);
        } elseif ($fromPrice != $toPrice || !$this->dataProvider->getOnePriceIntervalValue()) {
            $formattedPrice = __('%1 - %2', $formattedPrice, $this->priceCurrency->format($toPrice));
        }
        return $formattedPrice;
    }