45 $this->_shareConfig = $shareConfig;
48 parent::__construct($context,
$data);
58 $sharedWebsiteIds = $this->_shareConfig->getSharedWebsiteIds($this->
_getCustomer()->getWebsiteId());
59 $isShared = count($sharedWebsiteIds) > 1;
63 \
Magento\Customer\Block\Adminhtml\
Edit\Tab\Cart::class,
68 $websiteName = $this->_storeManager->getWebsite(
$websiteId)->getName();
69 $block->setCartHeader(
__(
'Shopping Cart from %1', $websiteName));
73 return parent::_prepareLayout();
83 $this->_eventManager->dispatch(
'adminhtml_block_html_before', [
'block' => $this]);
92 $customerDataObject = $this->customerDataFactory->create();
93 $this->dataObjectHelper->populateWithArray(
95 $this->_backendSession->getCustomerData()[
'account'],
96 \Magento\Customer\Api\Data\CustomerInterface::class
98 return $customerDataObject;
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Customer\Model\Config\Share $shareConfig, \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerDataFactory, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, array $data=[])
getChildHtml($alias='', $useCache=true)