68 \
Magento\Framework\View\LayoutInterface $layout,
69 \
Magento\Framework\Escaper $escaper,
70 \
Magento\Customer\Helper\View $customerViewHelper,
75 $this->_layout = $layout;
76 $this->_escaper = $escaper;
77 $this->_customerViewHelper = $customerViewHelper;
89 $customerName = $this->_customerViewHelper->getCustomerName(
90 $this->customerRepository->getById($this->_persistentSession->getSession()->getCustomerId())
106 if (!$this->_layout->getBlock(
'header.additional')) {
107 $this->_layout->addBlock(\
Magento\Persistent\Block\Header\Additional::class,
'header.additional');
117 public function emulateTopLinks(
$block)
122 $removeLink = $this->_url->getUrl(
'customer/account/login');
124 if (
$link->getHref() == $removeLink) {
125 $this->_layout->unsetChild(
$block->getNameInLayout(),
$link->getNameInLayout());
_applyAccountLinksPersistentData()
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Framework\UrlInterface $url, \Magento\Framework\View\LayoutInterface $layout, \Magento\Framework\Escaper $escaper, \Magento\Customer\Helper\View $customerViewHelper, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository)
emulateWelcomeBlock($block)