public/src/EmailControl/EmailSparkPost.php
private function getData(): array
    {
        list($color, $background) = $this->getColorTheme();
        $date = new DateTime();
        $data = [
            "assunto" => $this->assunto,
            "mensagem" => $this->mensagem,
            "email" => $this->destinatarioEmail,
            "nome" => $this->destinatarioNome,
            "remetente" => $this->remetenteEmail,
            "remetenteNome" => $this->remetenteNome,
            "sitename" => defined('SITENAME') ? SITENAME : "",
            "home" => defined('HOME') ? HOME : "",
            "sitedesc" => defined('SITEDESC') ? SITEDESC : "",
            "sitesub" => defined('SITESUB') ? SITESUB : "",
            "logo" => defined('LOGO') ? HOME . LOGO : "",
            "favicon" => defined('FAVICON') ? HOME . FAVICON : "",
            "date" => $date->getDateTime(date("Y-m-d H:i:s"), 'd/m/Y H:i'),
            "footerColor" => "dddddd",
            "headerColor" => $color,
            "headerBackground" => $background
        ];

        return !empty($this->data) ? array_merge($this->data, $data) : $data;
    }
private function getData(): array
    {
        list($color, $background) = $this->getColorTheme();
        $date = new DateTime();
        $data = [
            "assunto" => $this->assunto,
            "mensagem" => $this->mensagem,
            "email" => $this->destinatarioEmail,
            "nome" => $this->destinatarioNome,
            "remetente" => $this->remetenteEmail,
            "remetenteNome" => $this->remetenteNome,
            "sitename" => defined('SITENAME') ? SITENAME : "",
            "home" => defined('HOME') ? HOME : "",
            "sitedesc" => defined('SITEDESC') ? SITEDESC : "",
            "sitesub" => defined('SITESUB') ? SITESUB : "",
            "logo" => defined('LOGO') ? HOME . LOGO : "",
            "favicon" => defined('FAVICON') ? HOME . FAVICON : "",
            "date" => $date->getDateTime(date("Y-m-d H:i:s"), 'd/m/Y H:i'),
            "footerColor" => "dddddd",
            "headerColor" => $color,
            "headerBackground" => $background
        ];

        return !empty($this->data) ? array_merge($this->data, $data) : $data;
    }
Retorna dados padrão para passar para templates
@return array