lib/DocumentMapper/NativeDocumentMapper.php
private function getLocationFields(Location $location)
    {
        $fields = [];

        if ($this->locationFieldMapper->accept($location)) {
            $fields = $this->locationFieldMapper->mapFields($location);
        }

        return $fields;
    }
private function getLocationFields(Location $location)
    {
        $fields = [];

        if ($this->locationFieldMapper->accept($location)) {
            $fields = $this->locationFieldMapper->mapFields($location);
        }

        return $fields;
    }
private function getLocationFields ( Location $ location ) { $ fields = [ ] ; if ( $ this -> locationFieldMapper -> accept ( $ location ) ) { $ fields = $ this -> locationFieldMapper -> mapFields ( $ location ) ; } return $ fields ; }
Returns an array of fields for the given $location, to be added to the corresponding
Location document.

@param \eZ\Publish\SPI\Persistence\Content\Location $location

@return \eZ\Publish\SPI\Search\Field[]
Returns an array of fields for the given $location to be added to the corresponding Location document .