public function HttpServiceApiPreviewForm::title in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 src/Form/HttpServiceApiPreviewForm.php \Drupal\http_client_manager\Form\HttpServiceApiPreviewForm::title()
Route title callback.
Parameters
string $serviceApi: The service api name.
Return value
string The service api title.
1 string reference to 'HttpServiceApiPreviewForm::title'
File
- src/
Form/ HttpServiceApiPreviewForm.php, line 103
Class
- HttpServiceApiPreviewForm
- Class HttpServiceApiPreviewForm.
Namespace
Drupal\http_client_manager\FormCode
public function title($serviceApi) {
try {
$api = $this->httpServicesApi
->load($serviceApi);
} catch (\InvalidArgumentException $e) {
$api['title'] = $this
->t('Http Service Api not found');
}
return $api['title'];
}