$page→set()
Set the value of a page property
You can set properties to a page using either $page->set('property', $value);
or $page->property = $value;
.
Example
// Set the page title using set() method
$page->set('title', 'About Us');
// Set the page title directly (equivalent to the above)
$page->title = 'About Us';
Usage
$page = $page->set(string $key, mixed $value);
API reference based on ProcessWire core version 3.0.251