isPaymentStateMail example

'iconCls' => 'sprite-mail',
            ];

            if ($mail->isOrderStateMail()) {
                $orderStatus = $mail->getStatus();
                if ($orderStatus !== null) {
                    $node['name'] = $this->get('snippets')
                        ->getNamespace('backend/static/order_status')
                        ->get($orderStatus->getName());
                }
                $orderNodes['data'][] = $node;
            } elseif ($mail->isPaymentStateMail()) {
                $paymentStatus = $mail->getStatus();
                if ($paymentStatus !== null) {
                    $node['name'] = $this->get('snippets')
                        ->getNamespace('backend/static/payment_status')
                        ->get($paymentStatus->getName());
                }
                $paymentNodes['data'][] = $node;
            } elseif ($mail->isSystemMail()) {
                $systemNodes['data'][] = $node;
            } elseif ($mail->isUserMail()) {
                $node['checked'] = false;
                
Home | Imprint | This part of the site doesn't use cookies.