protected function JanrainUserProfile::getPhoneNumber in Janrain Registration 8
Returns a phone number by the type.
Parameters
string $type: Available types: "home", "fax", "work" and "mobile".
Return value
string The phone number.
4 calls to JanrainUserProfile::getPhoneNumber()
File
- src/
User/ JanrainUserProfile.php, line 100
Class
- JanrainUserProfile
- The user profile on Janrain.
Namespace
Drupal\janrain_capture\UserCode
protected function getPhoneNumber($type = 'mobile') : string {
return isset($this->data->phoneNumber->{$type}) ? (string) $this->data->phoneNumber->{$type} : '';
}