private function getItems()
    {
        $items = [];

        $layer = $this->layerResolver->get();
        $filterList = $this->getFilterList();

        foreach ($filterList->getFilters($layer) as $filter) {
            if ($filter->getRequestVar() == $this->getFilterName()) {
                foreach ($filter->getItems() as $item) {
                    $item->setBaseUrl($this->_redirect->getRedirectUrl());
                    $items[] = $item->toArray(['url', 'count', 'is_selected', 'label']);
                }
            }
        }

        return $items;
    }
private function getItems()
    {
        $items = [];

        $layer = $this->layerResolver->get();
        $filterList = $this->getFilterList();

        foreach ($filterList->getFilters($layer) as $filter) {
            if ($filter->getRequestVar() == $this->getFilterName()) {
                foreach ($filter->getItems() as $item) {
                    $item->setBaseUrl($this->_redirect->getRedirectUrl());
                    $items[] = $item->toArray(['url', 'count', 'is_selected', 'label']);
                }
            }
        }

        return $items;
    }
private function getItems ( ) { $ items = [ ] ; $ layer = $ this -> layerResolver -> get ( ) ; $ filterList = $ this -> getFilterList ( ) ; foreach ( $ filterList -> getFilters ( $ layer ) as $ filter ) { if ( $ filter -> getRequestVar ( ) == $ this -> getFilterName ( ) ) { foreach ( $ filter -> getItems ( ) as $ item ) { $ item -> setBaseUrl ( $ this -> _redirect -> getRedirectUrl ( ) ) ; $ items [ ] = $ item -> toArray ( [ 'url' , 'count' , 'is_selected' , 'label' ] ) ; } } } return $ items ; }
Returns array of items loaded through ajax.

@return array
Returns array of items loaded through ajax .