You are here

public function OpenApiGeneratorBase::getProduces in OpenAPI 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/openapi/OpenApiGeneratorBase.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase::getProduces()

Get a list of all MIME Type that the API Produces

Return value

array An array of all MIME Type that the API Produces

Overrides OpenApiGeneratorInterface::getProduces

1 call to OpenApiGeneratorBase::getProduces()
OpenApiGeneratorBase::getSpecification in src/Plugin/openapi/OpenApiGeneratorBase.php
Generates OpenAPI specification.
2 methods override OpenApiGeneratorBase::getProduces()
JsonApiGenerator::getProduces in src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
Get a list of all MIME Type that the API Produces
RestGenerator::getProduces in src/Plugin/openapi/OpenApiGenerator/RestGenerator.php
Get a list of all MIME Type that the API Produces

File

src/Plugin/openapi/OpenApiGeneratorBase.php, line 357

Class

OpenApiGeneratorBase
Defines base class for OpenApi Generator plugins.

Namespace

Drupal\openapi\Plugin\openapi

Code

public function getProduces() {
  return [];
}