Skip to main content

Filter: gk/query-filters/condition/factory-handlers

Modifies the list of condition factory handlers for a filter.

Each handler is a callable that receives the filter as a plain array and returns one of the following:

  • false — does not handle this filter; the next handler is tried.
  • null — claims this filter but produces no condition; built-in logic is skipped.
  • GF_Query_Condition — claims this filter with the given condition; built-in logic is skipped.

Parameters

NameTypeDescription
$handlers(callable|null|\GF_Query_Condition)[]Ordered list of condition factory handler callables.

Since

  • 2.10

Source

Defined in src/Condition/ConditionFactory.php at line 92