protected function getFacetNamesWithConfiguredField(array $allFacets)
    {
        $facets = [];

        foreach ($allFacets as $facetName => $facetConfiguration) {
            $facetName = substr($facetName, 0, -1);

            if (empty($facetConfiguration['field'])) {
                // TODO later check for query and date, too
                continue;
            }

            $facets[] = $facetName;
        }

        return $facets;
    }
protected function getFacetNamesWithConfiguredField(array $allFacets)
    {
        $facets = [];

        foreach ($allFacets as $facetName => $facetConfiguration) {
            $facetName = substr($facetName, 0, -1);

            if (empty($facetConfiguration['field'])) {
                // TODO later check for query and date, too
                continue;
            }

            $facets[] = $facetName;
        }

        return $facets;
    }
protected function getFacetNamesWithConfiguredField ( array $ allFacets ) { $ facets = [ ] ; foreach ( $ allFacets as $ facetName => $ facetConfiguration ) { $ facetName = substr ( $ facetName , 0 , - 1 ) ; if ( empty ( $ facetConfiguration [ 'field' ] ) ) { // TODO later check for query and date, too continue ; } $ facets [ ] = $ facetName ; } return $ facets ; }
Gets the facets as configured through TypoScript

@param array $allFacets
@return array An array of facet names as specified in TypoScript
Gets the facets as configured through TypoScript