You are here

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\OpenApiGenerator

Code

public function getProduces() {
  return $this
    ->generateMimeTypesFromFormats($this
    ->getRestSupportedFormats());
}