Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/app/code/Swissup/CustomerFieldManager/Block/Customer/
Upload File :
Current File : /home/dev2.destoffenstraat.com/app/code/Swissup/CustomerFieldManager/Block/Customer/Fields.php

<?php
namespace Swissup\CustomerFieldManager\Block\Customer;

class Fields extends \Swissup\FieldManager\Block\Customer\Fields
{
    const ENTITY_TYPE = \Magento\Customer\Api\CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER;

    protected function getCustomerData() {
        if (!$this->customerData) {
            $customerEditBlock = $this->getLayout()->getBlock('customer_edit');
            if ($customerEditBlock) {
                $this->customerData = $customerEditBlock->getCustomer();
            }
        }

        return $this->customerData;
    }
}