public function OpenApiUiController::title in OpenAPI 8
Same name and namespace in other branches
- 8.2 src/Controller/OpenApiUiController.php \Drupal\openapi\Controller\OpenApiUiController::title()
Gets the OpenAPI output in JSON format.
Return value
string The page title.
File
- src/
Controller/ OpenApiUiController.php, line 25
Class
- OpenApiUiController
- API Specification controller base.
Namespace
Drupal\openapi\ControllerCode
public function title(OpenApiUiInterface $openapi_ui, OpenApiGeneratorInterface $generator, Request $request) {
return $this
->t('%generator OpenApi Documentation', [
'%generator' => $generator
->getLabel(),
'%interface' => $openapi_ui
->getLabel(),
]);
}