2016-07-08 4 views

Répondre

0
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
    $customerSession = $objectManager->get('Magento\Customer\Model\Session'); 
    if($customerSession->isLoggedIn()) { 
     // display your link here 
    } 

------------------ du contrôleur -------------------

$this->_objectManager->get('Magento\Customer\Model\Session'); 
      if($customerSession->isLoggedIn()) { 
       // display your link here 
      }