You are here

interface UserManagerInterface in Social API 8.2

Same name and namespace in other branches
  1. 3.x src/User/UserManagerInterface.php \Drupal\social_api\User\UserManagerInterface

Interface for database-related tasks.

Hierarchy

Expanded class hierarchy of UserManagerInterface

All classes that implement UserManagerInterface

File

src/User/UserManagerInterface.php, line 8

Namespace

Drupal\social_api\User
View source
interface UserManagerInterface {

  /**
   * Gets the implementer plugin id.
   *
   * @return string
   *   The plugin id.
   */
  public function getPluginId();

  /**
   * Sets the implementer plugin id.
   *
   * @param string $plugin_id
   *   The plugin id.
   */
  public function setPluginId($plugin_id);

  /**
   * Gets the Drupal user id based on the provider user id.
   *
   * @param string $provider_user_id
   *   User's id on provider.
   *
   * @return int|false
   *   The Drupal user id if it exists.
   *   False otherwise.
   */
  public function getDrupalUserId($provider_user_id);

}

Members

Namesort descending Modifiers Type Description Overrides
UserManagerInterface::getDrupalUserId public function Gets the Drupal user id based on the provider user id. 1
UserManagerInterface::getPluginId public function Gets the implementer plugin id. 1
UserManagerInterface::setPluginId public function Sets the implementer plugin id. 1