class SocialProfileUserFormAlter in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_profile/src/SocialProfileUserFormAlter.php \Drupal\social_profile\SocialProfileUserFormAlter
- 10.1.x modules/social_features/social_profile/src/SocialProfileUserFormAlter.php \Drupal\social_profile\SocialProfileUserFormAlter
- 10.2.x modules/social_features/social_profile/src/SocialProfileUserFormAlter.php \Drupal\social_profile\SocialProfileUserFormAlter
Provides a trusted callback to alter the system branding block.
Hierarchy
- class \Drupal\social_profile\SocialProfileUserFormAlter implements TrustedCallbackInterface
Expanded class hierarchy of SocialProfileUserFormAlter
See also
social_user_block_view_search_content_block_alter()
1 file declares its use of SocialProfileUserFormAlter
- social_profile.module in modules/
social_features/ social_profile/ social_profile.module - The Social profile module.
File
- modules/
social_features/ social_profile/ src/ SocialProfileUserFormAlter.php, line 12
Namespace
Drupal\social_profileView source
class SocialProfileUserFormAlter implements TrustedCallbackInterface {
/**
* Hide timezone fields group label.
*/
public static function preRender($element) {
$element['group_locale_settings']['timezone']['#title'] = NULL;
return $element;
}
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() {
return [
'preRender',
];
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SocialProfileUserFormAlter:: |
public static | function | Hide timezone fields group label. | |
SocialProfileUserFormAlter:: |
public static | function |
Lists the trusted callbacks provided by the implementing class. Overrides TrustedCallbackInterface:: |
|
TrustedCallbackInterface:: |
constant | Untrusted callbacks throw exceptions. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger E_USER_WARNING errors. |