Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Sales\Helper;
7 
9 
16 {
23  public function canSendNewOrderConfirmationEmail($store = null)
24  {
25  return $this->scopeConfig->isSetFlag(
26  \Magento\Sales\Model\Order\Email\Container\OrderIdentity::XML_PATH_EMAIL_ENABLED,
27  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
28  $store
29  );
30  }
31 
38  public function canSendNewOrderEmail($store = null)
39  {
41  }
42 
49  public function canSendOrderCommentEmail($store = null)
50  {
51  return $this->scopeConfig->isSetFlag(
52  \Magento\Sales\Model\Order\Email\Container\OrderCommentIdentity::XML_PATH_EMAIL_ENABLED,
53  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
54  $store
55  );
56  }
57 
64  public function canSendNewShipmentEmail($store = null)
65  {
66  return $this->scopeConfig->isSetFlag(
67  \Magento\Sales\Model\Order\Email\Container\ShipmentIdentity::XML_PATH_EMAIL_ENABLED,
68  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
69  $store
70  );
71  }
72 
79  public function canSendShipmentCommentEmail($store = null)
80  {
81  return $this->scopeConfig->isSetFlag(
82  \Magento\Sales\Model\Order\Email\Container\ShipmentCommentIdentity::XML_PATH_EMAIL_ENABLED,
83  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
84  $store
85  );
86  }
87 
94  public function canSendNewInvoiceEmail($store = null)
95  {
96  return $this->scopeConfig->isSetFlag(
97  \Magento\Sales\Model\Order\Email\Container\InvoiceIdentity::XML_PATH_EMAIL_ENABLED,
98  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
99  $store
100  );
101  }
102 
109  public function canSendInvoiceCommentEmail($store = null)
110  {
111  return $this->scopeConfig->isSetFlag(
112  \Magento\Sales\Model\Order\Email\Container\InvoiceCommentIdentity::XML_PATH_EMAIL_ENABLED,
113  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
114  $store
115  );
116  }
117 
124  public function canSendNewCreditmemoEmail($store = null)
125  {
126  return $this->scopeConfig->isSetFlag(
127  \Magento\Sales\Model\Order\Email\Container\CreditmemoIdentity::XML_PATH_EMAIL_ENABLED,
128  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
129  $store
130  );
131  }
132 
139  public function canSendCreditmemoCommentEmail($store = null)
140  {
141  return $this->scopeConfig->isSetFlag(
142  \Magento\Sales\Model\Order\Email\Container\CreditmemoCommentIdentity::XML_PATH_EMAIL_ENABLED,
143  \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
144  $store
145  );
146  }
147 }
canSendNewOrderConfirmationEmail($store=null)
Definition: Data.php:23
canSendNewOrderEmail($store=null)
Definition: Data.php:38
canSendNewShipmentEmail($store=null)
Definition: Data.php:64
canSendInvoiceCommentEmail($store=null)
Definition: Data.php:109
canSendNewCreditmemoEmail($store=null)
Definition: Data.php:124
canSendOrderCommentEmail($store=null)
Definition: Data.php:49
canSendCreditmemoCommentEmail($store=null)
Definition: Data.php:139
canSendShipmentCommentEmail($store=null)
Definition: Data.php:79
canSendNewInvoiceEmail($store=null)
Definition: Data.php:94