src/Gzero/Cms/BlockFinder.php
protected function buildFilterArray($blocks)
    {
        $filter   = [];
        $excluded = [];
        foreach ($blocks as $block) {
            $this->extractFilter($block, $filter, $excluded);
        }
        return ['paths' => $filter, 'excluded' => $excluded];
    }
protected function buildFilterArray($blocks)
    {
        $filter   = [];
        $excluded = [];
        foreach ($blocks as $block) {
            $this->extractFilter($block, $filter, $excluded);
        }
        return ['paths' => $filter, 'excluded' => $excluded];
    }
protected function buildFilterArray ( $ blocks ) { $ filter = [ ] ; $ excluded = [ ] ; foreach ( $ blocks as $ block ) { $ this -> extractFilter ( $ block , $ filter , $ excluded ) ; } return [ 'paths' => $ filter , 'excluded' => $ excluded ] ; }
It extracts all filters from blocks & build filter array

@param array|Collection $blocks Blocks

@return array
It extracts all filters from blocks & build filter array