SocialProfilePrivacyHelperInterface.php in Open Social 10.1.x
Same filename and directory in other branches
- 10.3.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php
- 10.0.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php
- 10.2.x modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.php
Namespace
Drupal\social_profile_privacy\ServiceFile
modules/social_features/social_profile/modules/social_profile_privacy/src/Service/SocialProfilePrivacyHelperInterface.phpView source
<?php
namespace Drupal\social_profile_privacy\Service;
use Drupal\Core\Session\AccountInterface;
/**
* Defines the helper service interface.
*
* @package Drupal\social_profile_privacy\Service
*/
interface SocialProfilePrivacyHelperInterface {
/**
* Always show profile field for everyone.
*/
const SHOW = 0;
/**
* Show profile field, but it can be hidden by a user.
*/
const CONFIGURABLE = 1;
/**
* Hide profile field for everyone.
*/
const HIDE = 2;
/**
* Returns field settings of a user profile.
*
* @param \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 array
* The array of field labels and accesses, keyed by field name.
*/
public function getFieldOptions(AccountInterface $account = NULL);
}
Interfaces
Name | Description |
---|---|
SocialProfilePrivacyHelperInterface | Defines the helper service interface. |