Back to MailTemplate class

Method addTemplateData

public void
addTemplateData
(mixed $data)
Add data to replace in the template
Parameters
  • array $data Associative array of strings to replace
Returns
  • void
Since
  • 4.0.0
Class: MailTemplate
Project: Joomla

Method addTemplateData - Source code

/**
 * Add data to replace in the template
 *
 * @param   array  $data  Associative array of strings to replace
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function addTemplateData($data)
{
    $this->data = array_merge($this->data, $data);
}