You are here

UserAwareInterface.php in Open Social 10.1.x

File

modules/social_features/social_user/src/Wrappers/UserAwareInterface.php
View source
<?php

namespace Drupal\social_user\Wrappers;

use Drupal\user\UserInterface;

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

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

}

Interfaces

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