You are here

public function SocialProfilePrivacyHelperInterface::getFieldOptions in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php \Drupal\social_profile_privacy\Service\SocialProfilePrivacyHelperInterface::getFieldOptions()
  2. 10.0.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php \Drupal\social_profile_privacy\Service\SocialProfilePrivacyHelperInterface::getFieldOptions()
  3. 10.1.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php \Drupal\social_profile_privacy\Service\SocialProfilePrivacyHelperInterface::getFieldOptions()

Returns field settings of a user profile.

Parameters

\Drupal\Core\Session\AccountInterface|null $account: (optional) The user session for which to check access, or NULL to check access for the current user. Defaults to NULL.

Return value

array The array of field labels and accesses, keyed by field name.

1 method overrides SocialProfilePrivacyHelperInterface::getFieldOptions()
SocialProfilePrivacyHelper::getFieldOptions in modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelper.php
Returns field settings of a user profile.

File

modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php, line 39

Class

SocialProfilePrivacyHelperInterface
Defines the helper service interface.

Namespace

Drupal\social_profile_privacy\Service

Code

public function getFieldOptions(AccountInterface $account = NULL);