Skip to content

Instantly share code, notes, and snippets.

@dbjpanda
Created July 24, 2017 14:31
Show Gist options
  • Save dbjpanda/222c27ed4490000f20a07834b7119cf3 to your computer and use it in GitHub Desktop.
Save dbjpanda/222c27ed4490000f20a07834b7119cf3 to your computer and use it in GitHub Desktop.
<?php
namespace Drupal\facets_map_widget\Plugin\facets\query_type;
use Drupal\facets\QueryType\QueryTypePluginBase;
use Drupal\facets\Result\Result;
/**
* Provides support for location facets within the Search API scope.
*
* This query type supports latitude/longitude data type. This specific
* implementation of the query type supports a generic solution of adding map facets.
*
* @FacetsQueryType(
* id = "search_api_location",
* label = @Translation("Location"),
* )
*/
class SearchApiLocation extends QueryTypePluginBase {
/**
* The backend's native query object.
*
* @var \Drupal\search_api\Query\QueryInterface
*/
protected $query;
/**
* {@inheritdoc}
*/
public function execute() {
}
/**
* {@inheritdoc}
*/
public function build() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment