public function HttpClient::getCommand in HTTP Client Manager 8.2
Same name and namespace in other branches
- 8 src/HttpClient.php \Drupal\http_client_manager\HttpClient::getCommand()
Get single service api command by name.
Parameters
string $commandName: The command name.
Return value
\GuzzleHttp\Command\Guzzle\Operation The api command.
Overrides HttpClientInterface::getCommand
File
- src/
HttpClient.php, line 342
Class
- HttpClient
- The http client.
Namespace
Drupal\http_client_managerCode
public function getCommand($commandName) {
if (!empty($this->commands[$commandName])) {
return $this->commands[$commandName];
}
return $this
->getClient()
->getDescription()
->getOperation($commandName);
}