Change record status: 
Project: 
Introduced in branch: 
8.x-3.x
Introduced in version: 
8.x-3.0-rc1
Description: 

To be able to display errors on the pull form a new $options argument had been introduced to some methods of the RemoteManagerInterface.

Before:

  public function request(RemoteInterface $remote, $method, $url);
  public function jsonApiRequest(RemoteInterface $remote, $method, $url);
  public function getChannelsInfos(RemoteInterface $remote);

After:

  public function request(RemoteInterface $remote, $method, $url, array $options = []);
  public function jsonApiRequest(RemoteInterface $remote, $method, $url, array $options = []);
  public function getChannelsInfos(RemoteInterface $remote, array $options = []);

It allows to pass options to the methods to alter some behaviors.

Currently it allows to rethrow the exception if needed to handle it elsewhere, examples:

      $this->channelsInfos = $this->remoteManager->getChannelsInfos($selected_remote, [
        'rethrow' => TRUE,
      ]);

      $response = $this->remoteManager->jsonApiRequest($selected_remote, 'GET', $prepared_url, [
        'rethrow' => TRUE,
      ]);

If you use or override the entity_share_client.remote_manager service, you may need to update your code.

Impacts: 
Module developers
Site templates, recipes and distribution developers