TemplateFile::get()

Get a set property from the template file, typically to check if a template has access to a given variable

Usage

$mixed = $templateFile->get(string $key);

Arguments

NameType(s)Description
$keystring

Return value

mixed

Returns the value of the requested property, or NULL if it doesn't exist


TemplateFile methods and properties

API reference based on ProcessWire core version 3.0.252