$pageTemplateFile = $this->getHookedTemplateFileName();
self::$_template->assign('tplFile', $pageTemplateFile);
+ self::$_template->addExpectedTabHeaderKeys();
+
// invoke the pagRun hook, CRM-3906
CRM_Utils_Hook::pageRun($this);
return "<i$attribString></i>$sr";
}
+ /**
+ * Add an expected smarty variable to the array.
+ *
+ * @param string $elementName
+ */
+ public function addExpectedSmartyVariable(string $elementName): void {
+ $this->expectedSmartyVariables[] = $elementName;
+ }
+
+ /**
+ * Add an expected smarty variable to the array.
+ *
+ * @param array $elementNames
+ */
+ public function addExpectedSmartyVariables(array $elementNames): void {
+ foreach ($elementNames as $elementName) {
+ // Duplicates don't actually matter....
+ $this->addExpectedSmartyVariable($elementName);
+ }
+ }
+
}