/** * Retrieve package area * * @return string */ public function getArea() { // In order to support environment emulation of area, if area is set, return it if ($this->_area && !$this->_appState->isAreaCodeEmulated()) { return $this->_area; } return $this->_appState->getAreaCode(); }
/** * Used to test whether the isAreaCodeEmulated method returns true within an emulated context * * @return bool */ public function isAreaCodeEmulatedCallback() { return $this->model->isAreaCodeEmulated(); }
/** * @param \Magento\Framework\Mail\TransportInterface $subject * @param \Closure $proceed * @return mixed */ public function aroundSendMessage(\Magento\Framework\Mail\TransportInterface $subject, \Closure $proceed) { return $this->appState->isAreaCodeEmulated() ? null : $proceed(); }