protected function fillProfile(ProfileInterface $profile, array $item) {
    $profile->field_profile_image = $item['image'];
    $profile->field_profile_first_name = $item['first_name'];
    $profile->field_profile_last_name = $item['last_name'];
    $profile->field_profile_organization = $item['organization'];
    $profile->field_profile_function = $item['function'];
    $profile->field_profile_phone_number = $item['phone_number'];
    $profile->field_profile_self_introduction = $item['self_introduction'];
    $profile->field_profile_address = $item['address'];
    $profile->field_profile_expertise = $item['expertise'];
    $profile->field_profile_interests = $item['interests'];
  }
protected function fillProfile(ProfileInterface $profile, array $item) {
    $profile->field_profile_image = $item['image'];
    $profile->field_profile_first_name = $item['first_name'];
    $profile->field_profile_last_name = $item['last_name'];
    $profile->field_profile_organization = $item['organization'];
    $profile->field_profile_function = $item['function'];
    $profile->field_profile_phone_number = $item['phone_number'];
    $profile->field_profile_self_introduction = $item['self_introduction'];
    $profile->field_profile_address = $item['address'];
    $profile->field_profile_expertise = $item['expertise'];
    $profile->field_profile_interests = $item['interests'];
  }
protected function fillProfile ( ProfileInterface $ profile , array $ item ) { $ profile -> field_profile_image = $ item [ 'image' ] ; $ profile -> field_profile_first_name = $ item [ 'first_name' ] ; $ profile -> field_profile_last_name = $ item [ 'last_name' ] ; $ profile -> field_profile_organization = $ item [ 'organization' ] ; $ profile -> field_profile_function = $ item [ 'function' ] ; $ profile -> field_profile_phone_number = $ item [ 'phone_number' ] ; $ profile -> field_profile_self_introduction = $ item [ 'self_introduction' ] ; $ profile -> field_profile_address = $ item [ 'address' ] ; $ profile -> field_profile_expertise = $ item [ 'expertise' ] ; $ profile -> field_profile_interests = $ item [ 'interests' ] ; }
Fills the some fields of a profile.

@param \Drupal\profile\Entity\ProfileInterface $profile
Type of ProfileInterface.
@param array $item
The profile field item.
Fills the some fields of a profile .