SocialProfileUserFormAlter.php in Open Social 10.2.x
File
modules/social_features/social_profile/src/SocialProfileUserFormAlter.php
View source
<?php
namespace Drupal\social_profile;
use Drupal\Core\Security\TrustedCallbackInterface;
class SocialProfileUserFormAlter implements TrustedCallbackInterface {
public static function preRender($element) {
$element['group_locale_settings']['timezone']['#title'] = NULL;
return $element;
}
public static function trustedCallbacks() {
return [
'preRender',
];
}
}