Commit ba1f1c30 authored by mikeker's avatar mikeker

Initial commit: Adapter D8 port.

parent 3b1d8a10
<?php
/**
* @file
* Contains Drupal\facetapi\Adapter.
*/
namespace Drupal\facetapi;
class Adapter
{
public function __construct()
{
}
}
<?php
/**
* @file
* Contains Drupal\facetapi\Plugin\AdapterBase.
*/
namespace Drupal\facetapi\Plugin;
use Drupal\facetapi\Plugin\AdapterInterface;
/**
* Base class for Facet API adapters.
*
* @TODO: rewrite D7 comment block:
* Adapters are responsible for abstracting interactions with the Search backend
* that are necessary for faceted search. The adapter is also responsible for
* retrieving facet information passed by the user via the a processor plugin
* taking the appropriate action, whether it is checking dependencies for all
* enabled facets or passing the appropriate query type plugin to the backend
* so that it can execute the actual facet query.
*/
class AdapterBase implements AdapterInterface {
/**
* The searcher information as returned by facetapi_get_searcher_info().
*
* @var array
*/
protected $info = array();
/**
* The search keys, or query text, submitted by the user.
*
* @var string
*/
protected $keys;
/**
* An array of FacetapiFacet objects for facets being rendered.
*
* @var array
*
* @see FacetapiFacet
*/
protected $facets = array();
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment