$pages→newNullPage()
Return a NullPage
This method returns the same NullPage instance for every
call except if:
- The ProcessWire version is prior to 3.0.257.
- You specify
truefor the$forceNewargument. - Some value is set to a previously returned
NullPage, forcing it to generate a new one on the next call.
Usage
// basic usage
$nullPage = $pages->newNullPage();
// usage with all arguments
$nullPage = $pages->newNullPage(bool $forceNew = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$forceNew (optional) | bool | Require that it must be a new instance 3.0.257+ |
Return value
API reference based on ProcessWire core version 3.0.257