public function InstapageCmsPluginViewModel::assign in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/models/InstapageCmsPluginViewModel.php \InstapageCmsPluginViewModel::assign()
Assigns a value as a template attribute.
Parameters
string $key Name of the attribute.:
mixed $value Value of the attribute.:
Return value
object Template object.
File
- core/
models/ InstapageCmsPluginViewModel.php, line 94
Class
- InstapageCmsPluginViewModel
- Class responsible for displaying a template files.
Code
public function assign($key, $value) {
$this->templateData[$key] = $value;
return $this;
}