Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Slider::getFieldFormat PHP Method

getFieldFormat() protected method

Retrieve Field Format for slider display
protected getFieldFormat ( ) : array
return array
    protected function getFieldFormat()
    {
        $format = $this->localeFormat->getPriceFormat();
        $attribute = $this->getFilter()->getAttributeModel();
        $format['pattern'] = (string) $attribute->getDisplayPattern();
        $format['precision'] = (int) $attribute->getDisplayPrecision();
        $format['requiredPrecision'] = (int) $attribute->getDisplayPrecision();
        $format['integerRequired'] = (int) $attribute->getDisplayPrecision() > 0;
        return $format;
    }