eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor\Section::map PHP Method

map() public method

Map Elasticsearch facet result back to facet objects.
public map ( string $name, mixed $data ) : eZ\Publish\API\Repository\Values\Content\Search\Facet
$name string
$data mixed
return eZ\Publish\API\Repository\Values\Content\Search\Facet
    public function map($name, $data)
    {
        return new Facet\SectionFacet(array('name' => (string) substr($name, 9), 'entries' => $this->mapData($data)));
    }