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