I want to retrieve customer information from sales order view observer in adminhtml section, currently i only know how to retrieve order in that observer like this:
namespace Namespace\Module\Block\Adminhtml\Order\View;
class Custom extends \Magento\Backend\Block\Template
{
public function getCustomAttribute(){
$order = $this->getParentBlock()->getOrder();
return $order->getId();
}
}
i need to retrieve the customer information from that order, if the order is from logged in customer
$order->getCustomer()
?