$pagesgetOneById()

Get one page by ID

This is the same as getById() with the getOne option.

Available since version 3.0.186.

Usage

// basic usage
$page = $pages->getOneById(int $id);

// usage with all arguments
$page = $pages->getOneById(int $id, array $options = []);

Arguments

NameType(s)Description
$idint
$options (optional)array

Return value


$pages methods and properties

API reference based on ProcessWire core version 3.0.252