public function renderNumberOfResultsString($numberOfResults, $filter)
    {
        if ($filter['shownumberofresults'] && !count($filter['selectedOptions']) && $numberOfResults) {
            $returnValue = ' (' . $numberOfResults . ')';
        } else {
            $returnValue = '';
        }
        return $returnValue;
    }
public function renderNumberOfResultsString($numberOfResults, $filter)
    {
        if ($filter['shownumberofresults'] && !count($filter['selectedOptions']) && $numberOfResults) {
            $returnValue = ' (' . $numberOfResults . ')';
        } else {
            $returnValue = '';
        }
        return $returnValue;
    }
public function renderNumberOfResultsString ( $ numberOfResults , $ filter ) { if ( $ filter [ 'shownumberofresults' ] && ! count ( $ filter [ 'selectedOptions' ] ) && $ numberOfResults ) { $ returnValue = ' (' . $ numberOfResults . ')' ; } else { $ returnValue = '' ; } return $ returnValue ; }
renders brackets around the number of results, returns an empty
string if there are no results or if an option for this filter already
has been selected.
@param integer $numberOfResults
@param array $filter
@return string
renders brackets around the number of results returns an empty string if there are no results or if an option for this filter already has been selected .