You are here

public function SocialProfileFieldsHelper::getUserExportPluginIdForField in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  2. 8.3 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  3. 8.4 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  4. 8.5 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  5. 8.6 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  6. 8.7 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  7. 8.8 modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  8. 10.0.x modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  9. 10.1.x modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()
  10. 10.2.x modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php \Drupal\social_profile_fields\SocialProfileFieldsHelper::getUserExportPluginIdForField()

Get the user export plugin ids for a given field.

Parameters

string $field_id: The field id, e.g. profile_profile_field_profile_address.

Return value

array An array of plugins.

File

modules/social_features/social_profile/modules/social_profile_fields/src/SocialProfileFieldsHelper.php, line 90

Class

SocialProfileFieldsHelper
Defines the helper service.

Namespace

Drupal\social_profile_fields

Code

public function getUserExportPluginIdForField($field_id) {
  $mapping = $this
    ->mapProfileFieldsToUserExportPlugin();
  return array_keys($mapping, $field_id);
}