public static function allTemplates()
    {
        $result = [];
        $codes = array_keys(self::listAllTemplates());

        foreach ($codes as $code) {
            $result[] = self::findOrMakeTemplate($code);
        }

        return $result;
    }
public static function allTemplates()
    {
        $result = [];
        $codes = array_keys(self::listAllTemplates());

        foreach ($codes as $code) {
            $result[] = self::findOrMakeTemplate($code);
        }

        return $result;
    }
public static function allTemplates ( ) { $ result = [ ] ; $ codes = array_keys ( self :: listAllTemplates ( ) ) ; foreach ( $ codes as $ code ) { $ result [ ] = self :: findOrMakeTemplate ( $ code ) ; } return $ result ; }
Returns a list of all mail templates.
@return array Returns an array of the MailTemplate objects.
Returns a list of all mail templates .