/**
* @deprecated in 5.6, will be private in 5.8
*
* Returns mailing details by mailing id.
*
* @param int $id
*
* @return array
*/
public function getMailingDetails($id) { $details =
Shopware()->
Modules()->
Marketing()->
sMailCampaignsGetDetail((int) $id);
if (!\
is_array($details)) { return [];
} foreach ($details['containers'
] as $key =>
$container) { if ($container['type'
] === Container::TYPE_VOUCHER
) { if (!
empty($container['value'
])) { $details['voucher'
] =
$container['value'
];
} $details['containers'
][$key]['type'
] = Container::TYPE_TEXT;
}