Manages and provides access to all the Templates.

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

Common / Advanced

Show “$templates”             Show Arguments        


$templates->getExportData(Template $template)
arrayExport Template data for external use
$templates->setImportData(Template $template, array $data)
arrayGiven an array of Template export data, import it to the given Template

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.115