You are here

class FacetapiFilterActiveItems in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/filter.inc \FacetapiFilterActiveItems
  2. 7 plugins/facetapi/filter.inc \FacetapiFilterActiveItems

Plugin that filters active items.

Hierarchy

Expanded class hierarchy of FacetapiFilterActiveItems

2 string references to 'FacetapiFilterActiveItems'
facetapi_facetapi_filters in ./facetapi.facetapi.inc
Implements hook_facetapi_filters().
hook_facetapi_filters in ./facetapi.api.php
Define all filter plugins provided by the module.

File

plugins/facetapi/filter.inc, line 80
Base filter class and implementation.

View source
class FacetapiFilterActiveItems extends FacetapiFilter {

  /**
   * Filters active facet items.
   */
  public function execute(array $build) {
    return array_filter($build, 'facetapi_filter_active');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FacetapiFilter::$adapter protected property The adapter object.
FacetapiFilter::$id protected property The ID of this plugin.
FacetapiFilter::$settings protected property The facet settings.
FacetapiFilter::getDefaultSettings public function Returns default settings added to the settings form.
FacetapiFilter::settingsForm public function Adds settings to the filter form.
FacetapiFilter::__construct public function Initializes the filter object.
FacetapiFilterActiveItems::execute public function Filters active facet items. Overrides FacetapiFilter::execute