You are here

public function RestGenerator::getConsumes in OpenAPI for REST 8.2

File

src/Plugin/openapi/OpenApiGenerator/RestGenerator.php, line 152

Class

RestGenerator
Defines an OpenApi Schema Generator for the Rest module.

Namespace

Drupal\openapi_rest\Plugin\openapi\OpenApiGenerator

Code

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