public function FacetapiDependencyBundle::filterBundleFacets in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::filterBundleFacets()
- 7.2 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::filterBundleFacets()
Returns TRUE if the facet contains bundle information.
Parameters
array $facet: The facet definition as returned by facetapi_facet_load().
Return value
A boolean flagging whether the item should remain in the array.
See also
File
- plugins/
facetapi/ dependency_bundle.inc, line 88 - The bundle dependency class.
Class
- FacetapiDependencyBundle
- Dependency plugin adding bundle conditions.
Code
public function filterBundleFacets($facet) {
return !empty($facet['field api bundles']);
}