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
Name | Return | Summary | |
---|---|---|---|
$templates->getExportData() $templates->getExportData(Template $template) $templates->getExportData(Template $template) | array | Export Template data for external use | |
$templates->setImportData() $templates->setImportData(Template $template, array $data) $templates->setImportData(Template $template, array $data) | array | Given an array of Template export data, import it to the given Template |
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
$templates->fileModified() $templates->fileModified(Template $template) $templates->fileModified(Template $template) | (nothing) | Hook called when a Template detects that its file has changed |
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.236