You are here

public function UserNickName::getValue in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  2. 8.3 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  3. 8.4 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  4. 8.6 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  5. 8.7 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  6. 8.8 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  7. 10.3.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  8. 10.0.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  9. 10.1.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::getValue()
  10. 10.2.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/UserExportPlugin/UserNickName.php \Drupal\social_profile_fields\Plugin\UserExportPlugin\UserNickName::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/UserNickName.php, line 29

Class

UserNickName
Provides a 'UserNickName' user export row.

Namespace

Drupal\social_profile_fields\Plugin\UserExportPlugin

Code

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