Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReviewTab.php
Go to the documentation of this file.
1 <?php
7 
12 
18 class ReviewTab extends TabWrapper
19 {
25  protected $coreRegistry = null;
26 
30  protected $isAjaxLoaded = true;
31 
39  public function __construct(Context $context, Registry $registry, array $data = [])
40  {
41  $this->coreRegistry = $registry;
42  parent::__construct($context, $data);
43  }
44 
48  public function canShowTab()
49  {
50  return $this->coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
51  }
52 
58  public function getTabLabel()
59  {
60  return __('Product Reviews');
61  }
62 
68  public function getTabUrl()
69  {
70  return $this->getUrl('customer/*/productReviews', ['_current' => true]);
71  }
72 }
__()
Definition: __.php:13
__construct(Context $context, Registry $registry, array $data=[])
Definition: ReviewTab.php:39