You are here

public function UserAwareInterface::getUser in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.1.x modules/social_features/social_user/src/Wrappers/UserAwareInterface.php \Drupal\social_user\Wrappers\UserAwareInterface::getUser()
  2. 10.2.x modules/social_features/social_user/src/Wrappers/UserAwareInterface.php \Drupal\social_user\Wrappers\UserAwareInterface::getUser()

Return the user information.

Return value

\Drupal\user\UserInterface|null The user entity.

File

modules/social_features/social_user/src/Wrappers/UserAwareInterface.php, line 18

Class

UserAwareInterface
Provides a common interface for data that may contain a user entity.

Namespace

Drupal\social_user\Wrappers

Code

public function getUser() : ?UserInterface;