translateFilter example


    public function getFilterAction()
    {
        $repository = $this->getMultiEditRepository();
        $query = $repository->getListQuery();
        $results = $query->getArrayResult();

        foreach ($results as &$filter) {
            $filter = $this->translateFilter($filter);
        }

        $this->View()->assign(
            [
                'success' => true,
                'data' => $results,
            ]
        );
    }

    /** * Save/update a given filter. Also called when a filter is (un)favored * * @retrun void */
Home | Imprint | This part of the site doesn't use cookies.