private function getMlmId($customer)
    {
        $posted = $this->appRequest->getPostValue();
        if (
            isset($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID]) &&
            !empty($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID])
        ) {
            $result = $posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID];
        } else {
            $result = $this->hlpCodeGen->generateMlmId($customer);
        }
        return $result;
    }
private function getMlmId($customer)
    {
        $posted = $this->appRequest->getPostValue();
        if (
            isset($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID]) &&
            !empty($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID])
        ) {
            $result = $posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_OWN_MLM_ID];
        } else {
            $result = $this->hlpCodeGen->generateMlmId($customer);
        }
        return $result;
    }
private function getMlmId ( $ customer ) { $ posted = $ this -> appRequest -> getPostValue ( ) ; if ( isset ( $ posted [ 'customer' ] [ ABlock :: TMPL_FLDGRP ] [ ABlock :: TMPL_FIELD_OWN_MLM_ID ] ) && ! empty ( $ posted [ 'customer' ] [ ABlock :: TMPL_FLDGRP ] [ ABlock :: TMPL_FIELD_OWN_MLM_ID ] ) ) { $ result = $ posted [ 'customer' ] [ ABlock :: TMPL_FLDGRP ] [ ABlock :: TMPL_FIELD_OWN_MLM_ID ] ; } else { $ result = $ this -> hlpCodeGen -> generateMlmId ( $ customer ) ; } return $ result ; }
Extract customer's MLM ID from posted data or generate new one.

@param \Magento\Customer\Model\Data\Customer $customer
@return string
Extract customer s MLM ID from posted data or generate new one .