public function RestGenerator::getProduces in OpenAPI for REST 8.2
File
- src/
Plugin/ openapi/ OpenApiGenerator/ RestGenerator.php, line 159
Class
- RestGenerator
- Defines an OpenApi Schema Generator for the Rest module.
Namespace
Drupal\openapi_rest\Plugin\openapi\OpenApiGeneratorCode
public function getProduces() {
return $this
->generateMimeTypesFromFormats($this
->getRestSupportedFormats());
}