ProcessPageClone class

For more details about how Process modules work, please see:

wire/core/Process.php

Optional GET variables:

  • redirect_page (int): Contains ID of page to redirect to after clone.

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the ProcessPageClone class also inherits all the methods and properties of: Process, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessPageClone::execute()
NoneMain execution: Display Copy Page form or process it
ProcessPageClone::getModuleConfigInputfields(InputfieldWrapper $inputfields)
NoneModule configuration 
ProcessPageClone::getModuleInfo()
None 
ProcessPageClone::getPage()
null PageGet Page being cloned 
ProcessPageClone::hasPermission(Page $page)
boolCheck if the current user has permission to clone the given page 
ProcessPageClone::hookPageListActions(HookEvent $event)
NoneHook into ProcessPageListActions::getExtraActions to return a 'copy' action when appropriate 
ProcessPageClone::hookProcessExtraAction(HookEvent $event)
NoneHook to ProcessPageListActions::processAction() 
ProcessPageClone::processAjax()
array nullProcess an ajax clone request 
ProcessPageClone::ready()
NoneCalled when the API and $page loaded are ready 

Properties

NameReturnSummaryDefault
ProcessPageClone::alwaysUseForm bool int Disable the ajax shortcut for cloning pages and always use full form? 3.0.238+ 

Additional methods and properties

In addition to the methods and properties above, ProcessPageClone also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.251