$pagesnewNullPage()

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 true for the $forceNew argument.
  • 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

NameType(s)Description
$forceNew (optional)bool

Require that it must be a new instance 3.0.257+

Return value


$pages methods and properties

API reference based on ProcessWire core version 3.0.257