public function getDisplayedFilters()
    {
        $displayedFilters = array_filter(
            $this->getFilters(),
            function ($filter) {
                return $filter->getItemsCount() > 0;
            }
        );

        return array_values($displayedFilters);
    }
public function getDisplayedFilters()
    {
        $displayedFilters = array_filter(
            $this->getFilters(),
            function ($filter) {
                return $filter->getItemsCount() > 0;
            }
        );

        return array_values($displayedFilters);
    }
public function getDisplayedFilters ( ) { $ displayedFilters = array_filter ( $ this -> getFilters ( ) , function ( $ filter ) { return $ filter -> getItemsCount ( ) > 0 ; } ) ; return array_values ( $ displayedFilters ) ; }
Returns facet that are displayed.

@return array
Returns facet that are displayed .