You are here

public function FacetapiDependencyBundle::getEnabledBundleFacets in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 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.

1 call to FacetapiDependencyBundle::getEnabledBundleFacets()
FacetapiDependencyBundle::execute in plugins/facetapi/dependency_bundle.inc
Executes the dependency check.

File

plugins/facetapi/dependency_bundle.inc, line 52
Performs a dependency check against the passed bundle.

Class

FacetapiDependencyBundle
Adds a dependency on bundle.

Code

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