public function UserNationality::getValue in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNationality.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNationality::getValue()
- 10.1.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNationality.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNationality::getValue()
Returns the value.
Parameters
\Drupal\user\UserInterface $entity: The User entity to get the value from.
Return value
string The value.
Overrides UserExportPluginBase::getValue
File
- modules/
social_features/ social_profile/ modules/ social_profile_fields/ src/ Plugin/ UserExportPlugin/ UserNationality.php, line 29
Class
- UserNationality
- Provides a 'UserNationality' user export row.
Namespace
Drupal\social_profile_fields\Plugin\UserExportPluginCode
public function getValue(UserInterface $entity) {
return $this
->profileGetTaxonomyFieldValue('field_profile_nationality', $this
->getProfile($entity));
}