PagesEditor::editor method
Are we currently in a page clone?
Usage
// basic usage
$bool = $pages->editor->isCloning();
// usage with all arguments
$bool = $pages->editor->isCloning(bool $getDepth = false);
Arguments
Name | Type(s) | Description |
---|---|---|
$getDepth (optional) | bool | Get depth (int) rather than state (bool)? |
Return value
bool
int
$pages->editor methods and properties
API reference based on ProcessWire core version 3.0.252