You are here

public function FacetapiWidgetLinks::__construct in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/widget_links.inc \FacetapiWidgetLinks::__construct()
  2. 7 plugins/facetapi/widget_links.inc \FacetapiWidgetLinks::__construct()

Overrides constructor to reset the key.

Overrides FacetapiWidget::__construct

File

plugins/facetapi/widget_links.inc, line 16
Widgets for facets rendered as links.

Class

FacetapiWidgetLinks
Widget that renders facets as a list of clickable links.

Code

public function __construct($id, array $realm, FacetapiFacet $facet, stdClass $settings) {
  parent::__construct($id, $realm, $facet, $settings);
  $this->jsSettings['limit'] = $this->settings->settings['soft_limit'];
  $this->key = $facet['name'];
}