UserNationality.php in Open Social 10.2.x
File
modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNationality.php
View source
<?php
namespace Drupal\social_profile_fields\Plugin\UserExportPlugin;
use Drupal\social_user_export\Plugin\UserExportPluginBase;
use Drupal\user\UserInterface;
class UserNationality extends UserExportPluginBase {
public function getHeader() {
return $this
->t('Nationality');
}
public function getValue(UserInterface $entity) {
return $this
->profileGetTaxonomyFieldValue('field_profile_nationality', $this
->getProfile($entity));
}
}