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. Returning true has no effect while GravityKit's "Enable Background Processing" setting is off.
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
| Name | Type | Description |
|---|---|---|
| $enabled | bool | True if background processing should be used. |
| $form_id | int|null | The form ID when known, or null when called outside a form context. |
Since
- 2.11.0
Source
Defined in src/BackgroundProcessor.php at line 257