public function getSearchFacetingShowEmptyFacetsByName($facetName = '', $defaultIfEmpty = false)
    {
        $facetSpecificPath = 'plugin.tx_solr.search.faceting.facets.' . $facetName . '.showEvenWhenEmpty';
        $specificShowWhenEmpty = $this->getValueByPathOrDefaultValue($facetSpecificPath, null);

        // if we have a concrete setting, use it
        if ($specificShowWhenEmpty !== null) {
            return $specificShowWhenEmpty;
        }

        // no specific setting, check common setting
        $commonPath = 'plugin.tx_solr.search.faceting.showEmptyFacets';
        $commonIfEmptyOrDefaultValue = $this->getValueByPathOrDefaultValue($commonPath, $defaultIfEmpty);
        return $commonIfEmptyOrDefaultValue;
    }
public function getSearchFacetingShowEmptyFacetsByName($facetName = '', $defaultIfEmpty = false)
    {
        $facetSpecificPath = 'plugin.tx_solr.search.faceting.facets.' . $facetName . '.showEvenWhenEmpty';
        $specificShowWhenEmpty = $this->getValueByPathOrDefaultValue($facetSpecificPath, null);

        // if we have a concrete setting, use it
        if ($specificShowWhenEmpty !== null) {
            return $specificShowWhenEmpty;
        }

        // no specific setting, check common setting
        $commonPath = 'plugin.tx_solr.search.faceting.showEmptyFacets';
        $commonIfEmptyOrDefaultValue = $this->getValueByPathOrDefaultValue($commonPath, $defaultIfEmpty);
        return $commonIfEmptyOrDefaultValue;
    }
public function getSearchFacetingShowEmptyFacetsByName ( $ facetName = '' , $ defaultIfEmpty = false ) { $ facetSpecificPath = 'plugin.tx_solr.search.faceting.facets.' . $ facetName . '.showEvenWhenEmpty' ; $ specificShowWhenEmpty = $ this -> getValueByPathOrDefaultValue ( $ facetSpecificPath , null ) ; // if we have a concrete setting, use it if ( $ specificShowWhenEmpty !== null ) { return $ specificShowWhenEmpty ; } // no specific setting, check common setting $ commonPath = 'plugin.tx_solr.search.faceting.showEmptyFacets' ; $ commonIfEmptyOrDefaultValue = $ this -> getValueByPathOrDefaultValue ( $ commonPath , $ defaultIfEmpty ) ; return $ commonIfEmptyOrDefaultValue ; }
Retrieves the showEvenWhenEmpty for a facet by facet name. If nothing specific is configured
the global showEmptyFacets with be returned.

plugin.tx_solr.search.faceting.facets.<facetName>.showEvenWhenEmpty

or

plugin.tx_solr.search.faceting.showEmptyFacets


@param string $facetName
@param bool $defaultIfEmpty
@return bool
Retrieves the showEvenWhenEmpty for a facet by facet name . If nothing specific is configured the global showEmptyFacets with be returned .