Pimcore\Helper\Mail::formatDebugReceivers PHP Метод

formatDebugReceivers() защищенный статический Метод

Helper to format the receivers for the debug email and logging
protected static formatDebugReceivers ( array $receivers ) : string
$receivers array
Результат string
    protected static function formatDebugReceivers(array $receivers)
    {
        $tmpString = '';
        foreach ($receivers as $entry) {
            if (isset($entry['email'])) {
                $tmpString .= $entry['email'];
                if (isset($entry['name'])) {
                    $tmpString .= " (" . $entry["name"] . ")";
                }
                $tmpString .= ", ";
            }
        }
        $tmpString = substr($tmpString, 0, strrpos($tmpString, ','));
        return $tmpString;
    }