You are here

public function FacetapiDependencyBundle::getEnabledBundleFacets in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::getEnabledBundleFacets()
  2. 7 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::getEnabledBundleFacets()

Returns an array of enabled facets that filter by bundle.

Return value

array An array of enabled bundle facets.

See also

FacetapiDependencyBundle::filterBundleFacets()

1 call to FacetapiDependencyBundle::getEnabledBundleFacets()
FacetapiDependencyBundle::execute in plugins/facetapi/dependency_bundle.inc
Implements FacetapiDependency::execute().

File

plugins/facetapi/dependency_bundle.inc, line 71
The bundle dependency class.

Class

FacetapiDependencyBundle
Dependency plugin adding bundle conditions.

Code

public function getEnabledBundleFacets() {
  $enabled = array_filter($this->adapter
    ->getEnabledFacets(), array(
    $this,
    'filterBundleFacets',
  ));
  $active = array_filter($this->activeItems);
  return array_intersect_key($enabled, $active);
}