model/modx/processors/element/snippet/update.php
- package
- modx
- $id
- integer
The ID of the snippet - $name
- string
The name of the snippet - $snippet
- string
The code of the snippet. - $description
- string
(optional) A brief description. - $category
- integer
(optional) The category to assign to. Defaults to no category. - $locked
- boolean
(optional) If true, can only be accessed by administrators. Defaults to false. - $propdata
- \json
(optional) A json array of properties - subpackage
- processors.element.snippet
Description
Update a snippet