code: private function getLocationFields(Location $location)
      {
          $fields = [];
  
          if ($this->locationFieldMapper->accept($location)) {
              $fields = $this->locationFieldMapper->mapFields($location);
          }
  
          return $fields;
      }
docs: 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[]