wireInstance() function
Get or set the current ProcessWire instance
Please note this method is and thus not intended to be called directly.
Available since version 3.0.125.
Internal usage
// basic internal usage
$processWire = wireInstance();
// internal usage with all arguments
$processWire = wireInstance($wire = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$wire (optional) | Wire null | To set specify ProcessWire instance or any Wire-derived object in it, or omit to get current instance. |
Return value
Functions methods and properties
API reference based on ProcessWire core version 3.0.251