model/modx/processors/resource/duplicate.php
- package
- modx
- $id
- integer
The ID of the resource. - $name
- string
The new name of the resource that will be created. - $duplicate_children
- boolean
(optional) If true, will duplicate the resource's children as well. Defaults to false. - array
- An array of values of the new resource.
- subpackage
- processors.resource
Description
Duplicates a resource, and optionally, all of its children.