You are here

public function ClientManagerInterface::createRequest in Acquia Content Hub 8

Makes an API Call Request to Content Hub, with exception handling.

It handles generic exceptions and allows for text overrides.

Parameters

string $request: The name of the request.

array $args: The arguments to pass to the request.

array $exception_messages: The exception messages to overwrite.

Return value

bool|mixed The return value of the request if succeeds, FALSE otherwise.

1 method overrides ClientManagerInterface::createRequest()
ClientManager::createRequest in src/Client/ClientManager.php
Makes an API Call Request to Acquia Content Hub, with exception handling.

File

src/Client/ClientManagerInterface.php, line 59

Class

ClientManagerInterface
Interface for ClientManager.

Namespace

Drupal\acquia_contenthub\Client

Code

public function createRequest($request, array $args = [], array $exception_messages = []);