Get filters.

@return array
774104
public function getFilters() {
		$filters = [
			'apply_filters' => [$this, 'apply_filters'],
			'excerpt'       => 'wp_trim_words',
			'shortcodes'    => 'do_shortcode',
			'wpautop'       => 'wpautop'
		];

		/**
		 * Modify filters or add custom.
		 *
		 * @param array $callables
		 */
		$filters = apply_filters( 'digster/filters', $filters );
		$filters = is_array( $filters ) ? $filters : [];

		// Add filters.
		foreach ( $filters as $filter => $callable ) {
			if ( is_string( $filter ) && is_callable( $callable ) ) {
				$filters[$filter] = new \Twig_SimpleFilter( $filter, $callable );
			}
		}

		return $filters;
	}
1080950
private function getFilters()
    {
        $filters = [];

        $regions = [
            'fieldID' => 'region_id',
            'type' => 'dropDownList',
            'label' => trans('HCRegions::regions_countries.region'),
            'options' => HCContinents::all()->toArray(),
            'showNodes' => ['name'],
        ];

        $filters[] = addAllOptionToDropDownList($regions);

        return $filters;
    }
981862
public function getFilters() {
		$translation_filter = new \Twig_SimpleFilter('trans', function (\Twig_Environment $env, $string) {
			$globals = $env->getGlobals();
			$translation = $globals['env']['translation'];
			return \Skeleton\I18n\Translation::translate($string, $translation);
		}, ['needs_environment' => true]);
		return [
			$translation_filter
		];
	}
878792
public static function get_all_filters()
    {
        // get all filter instances
        $filters = ClassInfo::subclassesFor(CMSSiteTreeFilter::class);

        // remove abstract CMSSiteTreeFilter class
        array_shift($filters);

        // add filters to map
        $filterMap = array();
        foreach ($filters as $filter) {
            $filterMap[$filter] = $filter::title();
        }

        // Ensure that 'all pages' filter is on top position and everything else is sorted alphabetically
        uasort($filterMap, function ($a, $b) {
            return ($a === CMSSiteTreeFilter_Search::title())
                ? -1
                : strcasecmp($a, $b);
        });

        return $filterMap;
    }
798693
public function filterAll(): array
	{
		global ${$this->_sGlobal};
		if(!is_array(${$this->_sGlobal})) { return []; }

		# Processing
		$global = [];
		foreach (${$this->_sGlobal} as $name => $value) {
			$global[$name] = $this->_autoFilter($value);
		}

		return $global;
	}
643710
private function getSearchQuery()
    {
        $queries = [];

        foreach ($this->queryProviders as $queryProvider) {
            $queries[] = $queryProvider->getQuery();
        }

        return array_filter($queries);
    }
841031
public function getFilters()
    {
        $input = $this->collection->make(
            $this->request->except($this->sortName));

        $filters = $this->collection->make();

        $input->filter(function ($value) {
            if ($this->ignoreEmptyFilters && is_string($value) &&
                (string) $value == ''
            ) {
                return false;
            }

            return true;
        })->each(function ($value, $field) use ($filters) {
            $filter = new Filter();
            $filter->setField($field);
            $filter->setValue($value);
            $filters->push($filter);
        });

        return $filters;
    }
414014
protected function getAvailableFilters()
    {
        $filters = [];

        foreach ($this->config['allowed_filters'] as $key) {
            if (!isset($this->filterSets[$key])) {
                continue;
            }

            $set = $this->filterSets[$key];

            $explanation = [];
            foreach ($set['filters'] as $filter => $properties) {
                switch ($filter) {
                    case 'thumbnail':
                        $explanation[] = $properties['size'][0].' X '. $properties['size'][0];
                        break;
                    case 'relative_resize':
                        $heighten = (isset($properties['heighten'])) ? $properties['heighten'] : '~';
                        $widen = (isset($properties['widen'])) ? $properties['widen'] : '~';
                        $explanation[] = $widen.' X '.$heighten;
                        break;
                }
            }
            $filters[$key . ' ('.implode(', ', $explanation).')'] = $key;
        }

        return $filters;
    }
945653
public function getListFilter()
    {
        if ($this->_aListFilter === null) {
            $this->_aListFilter = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("where");
        }

        return $this->_aListFilter;
    }
202836
public function getFilters()
    {
        $language = $this->container->get('language');

        return [
            new \Twig_SimpleFilter('trans', [$language, 'translate']),
            new \Twig_SimpleFilter('lang', [$language, 'translate']),
            new \Twig_SimpleFilter('translate', [$language, 'translate']),
            new \Twig_SimpleFilter('_', [$language, 'translate']),
            new \Twig_SimpleFilter('sprintf', function (...$args) use ($language) {
                return $language->sprintf(...$args);
            }),
            new \Twig_SimpleFilter('plural', function (...$args) use ($language) {
                return $language->plural(...$args);
            }),
        ];
    }
452781
public function getFilters()
    {
        $filters = [];

        $filters[] = new \Twig_Filter('date_format', [$this, 'filterDateFormat']);
        $filters[] = new \Twig_Filter('truncate', 'b_truncate');
        $filters[] = new \Twig_Filter('nl2p', 'b_nl2p', ['is_safe' => ['html']]);
        $filters[] = new \Twig_Filter('human_file_size', 'b_human_file_size');
        $filters[] = new \Twig_Filter('json_decode', 'json_decode');

        return $filters;
    }
590918
private function getDefaultFilters()
    {
        return [
            'capitalize'  => Filters\CapitalizeFilter::class,
            'email'       => Filters\EmailFilter::class,
            'escape'      => Filters\EscapeFilter::class,
            'format_date' => Filters\FormatDateFilter::class,
            'lowercase'   => Filters\LowercaseFilter::class,
            'slug'        => Filters\SlugFilter::class,
            'trim'        => Filters\TrimFilter::class,
            'uppercase'   => Filters\UppercaseFilter::class,
            'url'         => Filters\UrlFilter::class,
        ];
    }
952719
public function getFilters () {
		return [
			new \Twig_Filter('del_lf',			[$this, 'deleteLf']),
			new \Twig_Filter('default',			[$this, 'customDefault']),
			new \Twig_Filter('str_search',		[$this, 'strSearch']),
			new \Twig_Filter('str_truncate',	[$this, 'strTruncate']),
			new \Twig_Filter('empty',			[$this, 'isEmpty']),
			new \Twig_Filter('strtotime',		[$this, 'strToTime']),
			new \Twig_Filter('var_dump',		'var_dump'),
			new \Twig_Filter('back_fill',		[$this, 'backFill']),

			new \Twig_Filter('vsprintf',		[$this, 'vsprintf']),

			new \Twig_Filter('sort',			[$this, 'sort']),
			new \Twig_Filter('rsort',			[$this, 'rSort']),
			new \Twig_Filter('ksort',			[$this, 'kSort']),
			new \Twig_Filter('krsort',			[$this, 'krSort']),

			new \Twig_Filter('count',			[$this, 'count']),

			new \Twig_Filter('self_combine',	[$this, 'selfCombine']),

			new \Twig_Filter('shift',			[$this, 'shift']),
			new \Twig_Filter('current',			'current'),
			new \Twig_Filter('key',				'key'),

			new \Twig_Filter('adjust',			[$this, 'adjust']),

			new \Twig_Filter('gmdate',			[$this, 'gmdate']),

			//error
			new \Twig_Filter('adjust_error',	[$this, 'adjustError']),

			new \Twig_Filter('toggle',			[$this, 'toggle']),

			new \Twig_Filter('route_toggle',	[$this, 'routeToggle']),

			new \Twig_Filter('exit',			'exit'),

			//==============================================
			//error support
			//==============================================
			new \Twig_Filter('filter_disable_error_set',	[$this, 'filterDisableErrorSet']),
		];
	}
1322141
public function filter()
    {
        return (object) [
            'type' => $this->_indexType,
            'filters' => $this->_comparisons,
            'order' => $this->_orderBy,
            'reverse' => $this->_reverse,
            'offset' => $this->_offset,
            'length' => $this->_length
        ];
    }
877898
public function safeFilters()
    {
        $filters = [];

        foreach ($this->filters() as $filterName => $query) {
            $filters[str_slug($filterName)] = $filterName;
        }

        return $filters;
    }
1200708
public function getFilters()
    {
        return [
            new \Twig_SimpleFilter(
                'truncate',
                function ($value, $len=75, $ter='...', $preserve = false) {
                    return \Slick\Template\Utils\Text::truncate(
                        $value,
                        $len,
                        $ter,
                        $preserve
                    );
                }
            ),
            new \Twig_SimpleFilter(
                'wordwrap',
                function ($value, $length = 75, $break = "\n", $cut = false) {
                    return \Slick\Template\Utils\Text::wordwrap(
                        $value,
                        $length,
                        $break,
                        $cut
                    );
                }
            )
        ];
    }
1011968
public function getFilters(): array
    {
        return [
            new TwigFilter('pluralize', 'Cake\Utility\Inflector::pluralize'),
            new TwigFilter('singularize', 'Cake\Utility\Inflector::singularize'),
            new TwigFilter('camelize', 'Cake\Utility\Inflector::camelize'),
            new TwigFilter('underscore', 'Cake\Utility\Inflector::underscore'),
            new TwigFilter('humanize', 'Cake\Utility\Inflector::humanize'),
            new TwigFilter('tableize', 'Cake\Utility\Inflector::tableize'),
            new TwigFilter('classify', 'Cake\Utility\Inflector::classify'),
            new TwigFilter('variable', 'Cake\Utility\Inflector::variable'),
            new TwigFilter('dasherize', 'Cake\Utility\Inflector::dasherize'),
            new TwigFilter('slug', 'Cake\Utility\Text::slug'),
        ];
    }