protected function HttpServiceApiPreviewForm::getConfigEntitiesCount in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 src/Form/HttpServiceApiPreviewForm.php \Drupal\http_client_manager\Form\HttpServiceApiPreviewForm::getConfigEntitiesCount()
Get total number of available Http Config Requests for a specific command.
Parameters
string $serviceApi: The service api name.
string $commandName: The command name.
Return value
int Total number of available config requests.
1 call to HttpServiceApiPreviewForm::getConfigEntitiesCount()
- HttpServiceApiPreviewForm::buildOperations in src/
Form/ HttpServiceApiPreviewForm.php - Build operations.
File
- src/
Form/ HttpServiceApiPreviewForm.php, line 306
Class
- HttpServiceApiPreviewForm
- Class HttpServiceApiPreviewForm.
Namespace
Drupal\http_client_manager\FormCode
protected function getConfigEntitiesCount($entity, $serviceApi, $commandName) {
$storage = $this->entityTypeManager
->getStorage($entity);
return $storage
->getQuery()
->condition('service_api', $serviceApi)
->condition('command_name', $commandName)
->count()
->execute();
}