protected function parseMainContact(ContactInterface $contact)
    {
        if ($contact) {
            $data = [];
            $data['id'] = $contact->getId();
            $data['fullName'] = $contact->getFullName();
            $data['phone'] = $contact->getMainPhone();
            $data['email'] = $contact->getMainEmail();

            return $data;
        } else {
            return null;
        }
    }
protected function parseMainContact(ContactInterface $contact)
    {
        if ($contact) {
            $data = [];
            $data['id'] = $contact->getId();
            $data['fullName'] = $contact->getFullName();
            $data['phone'] = $contact->getMainPhone();
            $data['email'] = $contact->getMainEmail();

            return $data;
        } else {
            return null;
        }
    }
protected function parseMainContact ( ContactInterface $ contact ) { if ( $ contact ) { $ data = [ ] ; $ data [ 'id' ] = $ contact -> getId ( ) ; $ data [ 'fullName' ] = $ contact -> getFullName ( ) ; $ data [ 'phone' ] = $ contact -> getMainPhone ( ) ; $ data [ 'email' ] = $ contact -> getMainEmail ( ) ; return $ data ; } else { return null ; } }
Returns the data needed for the account list-sidebar.

@param ContactInterface $contact

@return array
Returns the data needed for the account list - sidebar .