You are here

public function HttpClient::getCommand in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/HttpClient.php \Drupal\http_client_manager\HttpClient::getCommand()

Get single service api command by name.

Parameters

string $commandName: The command name.

Return value

mixed

Overrides HttpClientInterface::getCommand

File

src/HttpClient.php, line 104

Class

HttpClient

Namespace

Drupal\http_client_manager

Code

public function getCommand($commandName) {
  return $this
    ->getClient()
    ->getCommand($commandName)
    ->getOperation();
}