protected function renderedListFilterStrategies(array $values)
    {
        if ($this->getModelInformation()->list->disable_filters) {
            return [];
        }

        $views = [];

        foreach ($this->getModelInformation()->list->filters as $key => $data) {

            try {
                $instance = $this->getFilterFactory()->make($data->strategy, $key, $data);

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to make list filter strategy for '{$key}': \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }

            try {
                $views[ $key ] = $instance->render($key, array_get($values, $key));

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to render list filter '{$key}' for strategy " . get_class($instance)
                         . ": \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }
        }

        return $views;
    }
protected function renderedListFilterStrategies(array $values)
    {
        if ($this->getModelInformation()->list->disable_filters) {
            return [];
        }

        $views = [];

        foreach ($this->getModelInformation()->list->filters as $key => $data) {

            try {
                $instance = $this->getFilterFactory()->make($data->strategy, $key, $data);

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to make list filter strategy for '{$key}': \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }

            try {
                $views[ $key ] = $instance->render($key, array_get($values, $key));

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to render list filter '{$key}' for strategy " . get_class($instance)
                         . ": \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }
        }

        return $views;
    }
protected function renderedListFilterStrategies ( array $ values ) { if ( $ this -> getModelInformation ( ) -> list -> disable_filters ) { return [ ] ; } $ views = [ ] ; foreach ( $ this -> getModelInformation ( ) -> list -> filters as $ key => $ data ) { try { $ instance = $ this -> getFilterFactory ( ) -> make ( $ data -> strategy , $ key , $ data ) ; // @codeCoverageIgnoreStart } catch ( \ Exception $ e ) { $ message = "Failed to make list filter strategy for '{$key}': \n{$e->getMessage()}" ; throw new StrategyRenderException ( $ message , $ e -> getCode ( ) , $ e ) ; // @codeCoverageIgnoreEnd } try { $ views [ $ key ] = $ instance -> render ( $ key , array_get ( $ values , $ key ) ) ; // @codeCoverageIgnoreStart } catch ( \ Exception $ e ) { $ message = "Failed to render list filter '{$key}' for strategy " . get_class ( $ instance ) . ": \n{$e->getMessage()}" ; throw new StrategyRenderException ( $ message , $ e -> getCode ( ) , $ e ) ; // @codeCoverageIgnoreEnd } } return $ views ; }
Renders Vies or HTML for list filter strategies.

@param array $values     active filter values
@return View[]|\string[]
@throws StrategyRenderException
Renders Vies or HTML for list filter strategies .