protected function HttpServiceApiPreviewForm::getParameterType in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 src/Form/HttpServiceApiPreviewForm.php \Drupal\http_client_manager\Form\HttpServiceApiPreviewForm::getParameterType()
Get parameter type.
Parameters
\Guzzle\Service\Description\Parameter $param: A Parameter instance.
Return value
string A formatted Parameter type.
1 call to HttpServiceApiPreviewForm::getParameterType()
- HttpServiceApiPreviewForm::buildForm in src/
Form/ HttpServiceApiPreviewForm.php - Form constructor.
File
- src/
Form/ HttpServiceApiPreviewForm.php, line 255
Class
- HttpServiceApiPreviewForm
- Class HttpServiceApiPreviewForm.
Namespace
Drupal\http_client_manager\FormCode
protected function getParameterType(Parameter $param) {
$type = $param
->getType();
if ($type != 'array') {
return ucfirst($type);
}
$childType = $param
->getItems()
->getType();
return '<List>' . ucfirst($childType);
}