Skip to main content

Filter: gk/gravityimport/processor/background/enabled

Filters whether background import processing is available.

Use this filter to force-disable background processing site-wide or per form, regardless of system health or the Foundation setting. Return false to force synchronous (in-browser) processing. The decision is evaluated at scheduling time (when the user starts an import). Imports already running in the background are not re-evaluated when paused/resumed — to stop an in-flight job, cancel it from the import page.

Parameters

NameTypeDescription
$enabledboolTrue if background processing should be used.
$form_idint|nullThe form ID when known, or null when called outside a form context.

Since

Source

Defined in src/BackgroundProcessor.php at line 252