Model/Cron.php
public function syncEmailTemplates()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_email_templates')) {
            $message = 'Skipping ddg_automation_email_templates job run';
            $this->helper->log($message);
            return $message;
        }

        return $this->templateFactory->create()
            ->sync();
    }
public function syncEmailTemplates()
    {
        if ($this->jobHasAlreadyBeenRun('ddg_automation_email_templates')) {
            $message = 'Skipping ddg_automation_email_templates job run';
            $this->helper->log($message);
            return $message;
        }

        return $this->templateFactory->create()
            ->sync();
    }
public function syncEmailTemplates ( ) { if ( $ this -> jobHasAlreadyBeenRun ( 'ddg_automation_email_templates' ) ) { $ message = 'Skipping ddg_automation_email_templates job run' ; $ this -> helper -> log ( $ message ) ; return $ message ; } return $ this -> templateFactory -> create ( ) -> sync ( ) ; }
Sync the email templates from dotmailer.
Sync the email templates from dotmailer .