PagesEditor::editor method

Clear a page of its data

Available since version 3.0.189.

Usage

// basic usage
$bool = $pages->editor->clear(Page $page);

// usage with all arguments
$bool = $pages->editor->clear(Page $page, array $options = []);

Arguments

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

Return value

bool

Exceptions

Method can throw exceptions on error:

  • WireException


$pages->editor methods and properties

API reference based on ProcessWire core version 3.0.252