src/control/CatalogueController.php
public function getFilter()
    {
        $filter = [];
        $tag = $this->getRequest()->getVar("t");

        if ($tag) {
            $filter["Tags.URLSegment"] = $tag;
        }

        $this->extend("updateFilter", $filter);

        return $filter;
    }
public function getFilter()
    {
        $filter = [];
        $tag = $this->getRequest()->getVar("t");

        if ($tag) {
            $filter["Tags.URLSegment"] = $tag;
        }

        $this->extend("updateFilter", $filter);

        return $filter;
    }
public function getFilter ( ) { $ filter = [ ] ; $ tag = $ this -> getRequest ( ) -> getVar ( "t" ) ; if ( $ tag ) { $ filter [ "Tags.URLSegment" ] = $ tag ; } $ this -> extend ( "updateFilter" , $ filter ) ; return $ filter ; }
Find a filter from the URL that we can apply to the products list

@return array
Find a filter from the URL that we can apply to the products list