You are here

interface RemoteManagerInterface in Entity Share 8

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/src/Service/RemoteManagerInterface.php \Drupal\entity_share_client\Service\RemoteManagerInterface
  2. 8.2 modules/entity_share_client/src/Service/RemoteManagerInterface.php \Drupal\entity_share_client\Service\RemoteManagerInterface

Remote manager interface methods.

Hierarchy

Expanded class hierarchy of RemoteManagerInterface

All classes that implement RemoteManagerInterface

1 file declares its use of RemoteManagerInterface
PullForm.php in modules/entity_share_client/src/Form/PullForm.php

File

modules/entity_share_client/src/Service/RemoteManagerInterface.php, line 10

Namespace

Drupal\entity_share_client\Service
View source
interface RemoteManagerInterface {

  /**
   * Prepare an HTTP client authenticated to handle private files.
   *
   * @param \Drupal\entity_share_client\Entity\RemoteInterface $remote
   *   The remote website on which to prepare the client.
   *
   * @return \GuzzleHttp\Client
   *   An HTTP client with some info from the remote.
   */
  public function prepareClient(RemoteInterface $remote);

  /**
   * Prepare an HTTP client for the JSON API endpoints.
   *
   * @param \Drupal\entity_share_client\Entity\RemoteInterface $remote
   *   The remote website on which to prepare the client.
   *
   * @return \GuzzleHttp\Client
   *   An HTTP client with some info from the remote.
   */
  public function prepareJsonApiClient(RemoteInterface $remote);

  /**
   * Get the channels infos of a remote website.
   *
   * @param \Drupal\entity_share_client\Entity\RemoteInterface $remote
   *   The remote website on which to get the channels infos.
   *
   * @return array
   *   An array of channel infos as returned by entity_share_server entry point.
   */
  public function getChannelsInfos(RemoteInterface $remote);

}

Members

Namesort descending Modifiers Type Description Overrides
RemoteManagerInterface::getChannelsInfos public function Get the channels infos of a remote website. 1
RemoteManagerInterface::prepareClient public function Prepare an HTTP client authenticated to handle private files. 1
RemoteManagerInterface::prepareJsonApiClient public function Prepare an HTTP client for the JSON API endpoints. 1