You are here

interface UserAwareInterface in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_user/src/Wrappers/UserAwareInterface.php \Drupal\social_user\Wrappers\UserAwareInterface
  2. 10.2.x modules/social_features/social_user/src/Wrappers/UserAwareInterface.php \Drupal\social_user\Wrappers\UserAwareInterface

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

Hierarchy

Expanded class hierarchy of UserAwareInterface

All classes that implement UserAwareInterface

1 file declares its use of UserAwareInterface
UserFromWrapper.php in modules/social_features/social_user/src/Plugin/GraphQL/DataProducer/UserFromWrapper.php

File

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

Namespace

Drupal\social_user\Wrappers
View source
interface UserAwareInterface {

  /**
   * Return the user information.
   *
   * @return \Drupal\user\UserInterface|null
   *   The user entity.
   */
  public function getUser() : ?UserInterface;

}

Members

Namesort descending Modifiers Type Description Overrides
UserAwareInterface::getUser public function Return the user information.