function UserHooks::triggerMemberForDeprecation

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Hook/UserHooks.php \Drupal\user\Hook\UserHooks::triggerMemberForDeprecation()

Entity render array #post_render callback.

Attributes

#[TrustedCallback]

File

core/modules/user/src/Hook/UserHooks.php, line 157

Class

UserHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

public static function triggerMemberForDeprecation(string $renderedMemberFor, array $build) : string {
  @trigger_error('The user entity "member_for" display extra field is deprecated in drupal:11.5.0 and removed in drupal:13.0.0. Use the "created" field in displays instead. See https://www.drupal.org/node/3611943', E_USER_DEPRECATED);
  return $renderedMemberFor;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.