public function listAction(array $override = [])
    {
        $demand = $this->createDemandFromSettings();

        if (!empty($override) && $this->settings['allowOverride']) {
            $this->overrideDemand($demand, $override);
        }

        if ($demand->getSingleRecords()) {
            $addresses = $this->addressRepository->getAddressesByCustomSorting($demand);
        } else {
            $addresses = $this->addressRepository->findByDemand($demand);
        }

        $this->view->assignMultiple([
            'demand' => $demand,
            'addresses' => $addresses
        ]);

        CacheUtility::addCacheTagsByAddressRecords(
            $addresses instanceof QueryResultInterface ? $addresses->toArray() : $addresses
        );
    }
public function listAction(array $override = [])
    {
        $demand = $this->createDemandFromSettings();

        if (!empty($override) && $this->settings['allowOverride']) {
            $this->overrideDemand($demand, $override);
        }

        if ($demand->getSingleRecords()) {
            $addresses = $this->addressRepository->getAddressesByCustomSorting($demand);
        } else {
            $addresses = $this->addressRepository->findByDemand($demand);
        }

        $this->view->assignMultiple([
            'demand' => $demand,
            'addresses' => $addresses
        ]);

        CacheUtility::addCacheTagsByAddressRecords(
            $addresses instanceof QueryResultInterface ? $addresses->toArray() : $addresses
        );
    }
public function listAction ( array $ override = [ ] ) { $ demand = $ this -> createDemandFromSettings ( ) ; if ( ! empty ( $ override ) && $ this -> settings [ 'allowOverride' ] ) { $ this -> overrideDemand ( $ demand , $ override ) ; } if ( $ demand -> getSingleRecords ( ) ) { $ addresses = $ this -> addressRepository -> getAddressesByCustomSorting ( $ demand ) ; } else { $ addresses = $ this -> addressRepository -> findByDemand ( $ demand ) ; } $ this -> view -> assignMultiple ( [ 'demand' => $ demand , 'addresses' => $ addresses ] ) ; CacheUtility :: addCacheTagsByAddressRecords ( $ addresses instanceof QueryResultInterface ? $ addresses -> toArray ( ) : $ addresses ) ; }
Lists addresses by settings in waterfall principle.
singleRecords take precedence over categories which take precedence over records from pages

@param array $override Optional overriding demand
@throws InvalidQueryException
Lists addresses by settings in waterfall principle . singleRecords take precedence over categories which take precedence over records from pages