coreRegistry = $registry; parent::__construct($context, $data); } /** * @inheritdoc */ public function canShowTab() { return $this->coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID); } /** * Return Tab label * * @return \Magento\Framework\Phrase */ public function getTabLabel() { return __('Product Reviews'); } /** * Return URL link to Tab content * * @return string */ public function getTabUrl() { return $this->getUrl('customer/*/productReviews', ['_current' => true]); } }