model/modx/processors/element/snippet/create.php
- package
- modx
- $name
- string
The name of the element - $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
Create a snippet.