context = $context; parent::__construct($context, $components, $data); } /** * Can show customer addresses tab in tabs or not * * Will return false for not registered customer in a case when admin user created new customer account. * Needed to hide addresses tab from create new customer page * * @return boolean */ public function isComponentVisible(): bool { $customerId = $this->context->getRequestParam('id'); return (bool)$customerId; } }