public static function SocialProfileNameService::getProfileNameFields in Open Social 10.3.x
Same name and namespace in other branches
- 10.2.x modules/social_features/social_profile/src/SocialProfileNameService.php \Drupal\social_profile\SocialProfileNameService::getProfileNameFields()
Get the list of the fields which can contain in the Profile name.
Return value
string[] List of the names of the fields.
5 calls to SocialProfileNameService::getProfileNameFields()
- SocialProfileNameService::getProfileName in modules/
social_features/ social_profile/ src/ SocialProfileNameService.php - Get profile name.
- SocialProfileNameService::needToUpdateProfileName in modules/
social_features/ social_profile/ src/ SocialProfileNameService.php - Whether or not need to update the Profile name.
- social_profile_privacy_admin_settings_form_submit in modules/
social_features/ social_profile/ modules/ social_profile_privacy/ social_profile_privacy.module - The submit function for social_profile_admin_settings_form().
- social_profile_privacy_form_social_profile_admin_settings_form_alter in modules/
social_features/ social_profile/ modules/ social_profile_privacy/ social_profile_privacy.module - Implements hook_form_FORM_ID_alter().
- _social_profile_privacy_fields_submit in modules/
social_features/ social_profile/ modules/ social_profile_privacy/ social_profile_privacy.module - Save fields visibility options for a user.
File
- modules/
social_features/ social_profile/ src/ SocialProfileNameService.php, line 88
Class
- SocialProfileNameService
- Provide a service for Profile name.
Namespace
Drupal\social_profileCode
public static function getProfileNameFields() : array {
$fields = [
'field_profile_first_name',
'field_profile_last_name',
];
if (\Drupal::moduleHandler()
->moduleExists('social_profile_fields')) {
$fields[] = 'field_profile_nick_name';
}
return $fields;
}