You are here

public function UserNationality::getValue in Open Social 10.3.x

Same name and namespace in other branches
  1. 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()
  2. 10.2.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\UserExportPlugin

Code

public function getValue(UserInterface $entity) {
  return $this
    ->profileGetTaxonomyFieldValue('field_profile_nationality', $this
    ->getProfile($entity));
}