You are here

class SocialProfileUserFormAlter in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_profile/src/SocialProfileUserFormAlter.php \Drupal\social_profile\SocialProfileUserFormAlter
  2. 10.0.x modules/social_features/social_profile/src/SocialProfileUserFormAlter.php \Drupal\social_profile\SocialProfileUserFormAlter
  3. 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

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_profile
View 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

Namesort descending Modifiers Type Description Overrides
SocialProfileUserFormAlter::preRender public static function Hide timezone fields group label.
SocialProfileUserFormAlter::trustedCallbacks public static function Lists the trusted callbacks provided by the implementing class. Overrides TrustedCallbackInterface::trustedCallbacks
TrustedCallbackInterface::THROW_EXCEPTION constant Untrusted callbacks throw exceptions.
TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION constant Untrusted callbacks trigger silenced E_USER_DEPRECATION errors.
TrustedCallbackInterface::TRIGGER_WARNING constant Untrusted callbacks trigger E_USER_WARNING errors.