/** * Get the message from MessageBuilder and apply custom/extra data * * @return array */ public function getMessage() { $message = $this->messageBuilder->getMessage(); if (!isset($message['from'])) { $this->setConfigFrom(); $message = $this->messageBuilder->getMessage(); } if ($this->variables) { $message['recipient-variables'] = json_encode($this->variables); } if (isset($this->{'o:native-send'})) { $message['o:native-send'] = $this->{'o:native-send'}; } return $message; }
/** * @param $name * @return mixed */ protected function getMessagePart($name) { $message = $this->messageBuilder->getMessage(); return ArrayHelper::getValue($message, $name); }