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()
None

Main execution: Display Copy Page form or process it

ProcessPageClone::getModuleConfigInputfields(InputfieldWrapper $inputfields)
None

Module configuration

 
ProcessPageClone::getModuleInfo()
None 
ProcessPageClone::getPage()
null Page

Get Page being cloned

 
ProcessPageClone::hasPermission(Page $page)
bool

Check if the current user has permission to clone the given page

 
ProcessPageClone::hookPageListActions(HookEvent $event)
None

Hook into ProcessPageListActions::getExtraActions to return a 'copy' action when appropriate

 
ProcessPageClone::hookProcessExtraAction(HookEvent $event)
None

Hook to ProcessPageListActions::processAction()

 
ProcessPageClone::processAjax()
array null

Process an ajax clone request

 
ProcessPageClone::ready()
None

Called when the API and $page loaded are ready

 

Properties

NameReturnSummary 
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.253