MetaModels\FrontendIntegration\FrontendFilter::getFilters PHP Метод

getFilters() защищенный Метод

Get the filters.
protected getFilters ( ) : array
Результат array
    protected function getFilters()
    {
        $filterOptions = $this->getFrontendFilterOptions();
        $jumpToInformation = $this->objFilterConfig->getJumpTo();
        $filterParameters = $this->getParams();
        $filterSetting = $this->objFilterConfig->getFilterCollection();
        $arrWidgets = $filterSetting->getParameterFilterWidgets($filterParameters['all'], $jumpToInformation, $filterOptions);
        // Filter the widgets we do not want to show.
        $wantedNames = $this->getWantedNames();
        $this->checkRedirect($arrWidgets, $wantedNames, $filterParameters);
        $renderedWidgets = array();
        // Render the widgets through the filter templates.
        foreach ($wantedNames as $strWidget) {
            $renderedWidgets[$strWidget] = $this->renderWidget($arrWidgets[$strWidget], $filterOptions);
        }
        $event = new GenerateFrontendUrlEvent($jumpToInformation, $this->getJumpToUrl($filterParameters['other']), null, true);
        $this->getDispatcher()->dispatch(ContaoEvents::CONTROLLER_GENERATE_FRONTEND_URL, $event);
        // Return filter data.
        return array('action' => $event->getUrl(), 'formid' => $this->formId, 'filters' => $renderedWidgets, 'submit' => $filterOptions->isAutoSubmit() ? '' : $GLOBALS['TL_LANG']['metamodels_frontendfilter']['submit']);
    }