Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
WishlistTab.php
Go to the documentation of this file.
1 <?php
7 
13 
17 class WishlistTab extends TabWrapper implements TabInterface
18 {
24  protected $coreRegistry = null;
25 
29  protected $isAjaxLoaded = true;
30 
38  public function __construct(Context $context, Registry $registry, array $data = [])
39  {
40  $this->coreRegistry = $registry;
41  parent::__construct($context, $data);
42  }
43 
47  public function canShowTab()
48  {
49  return $this->coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
50  }
51 
57  public function getTabLabel()
58  {
59  return __('Wish List');
60  }
61 
67  public function getTabUrl()
68  {
69  return $this->getUrl('customer/*/wishlist', ['_current' => true]);
70  }
71 }
__construct(Context $context, Registry $registry, array $data=[])
Definition: WishlistTab.php:38
__()
Definition: __.php:13