32 $this->_customerMetadataService = $customerMetadataService;
33 parent::__construct($context);
42 $prefixMetadata = $this->_customerMetadataService->getAttributeMetadata(
'prefix');
43 if ($prefixMetadata->isVisible() &&
$customerData->getPrefix()) {
49 $middleNameMetadata = $this->_customerMetadataService->getAttributeMetadata(
'middlename');
50 if ($middleNameMetadata->isVisible() &&
$customerData->getMiddlename()) {
56 $suffixMetadata = $this->_customerMetadataService->getAttributeMetadata(
'suffix');
57 if ($suffixMetadata->isVisible() &&
$customerData->getSuffix()) {
$_customerMetadataService
__construct(\Magento\Framework\App\Helper\Context $context, CustomerMetadataInterface $customerMetadataService)
getCustomerName(CustomerInterface $customerData)
if(!isset($_GET['name'])) $name