public function OpenApiGeneratorBase::getConsumes in OpenAPI 8
Same name and namespace in other branches
- 8.2 src/Plugin/openapi/OpenApiGeneratorBase.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase::getConsumes()
Get a list of all MIME Type that the API Consumes
Return value
array An array of all MIME Type that the API Consumes
Overrides OpenApiGeneratorInterface::getConsumes
1 call to OpenApiGeneratorBase::getConsumes()
- OpenApiGeneratorBase::getSpecification in src/
Plugin/ openapi/ OpenApiGeneratorBase.php - Generates OpenAPI specification.
2 methods override OpenApiGeneratorBase::getConsumes()
- JsonApiGenerator::getConsumes in src/
Plugin/ openapi/ OpenApiGenerator/ JsonApiGenerator.php - Get a list of all MIME Type that the API Consumes
- RestGenerator::getConsumes in src/
Plugin/ openapi/ OpenApiGenerator/ RestGenerator.php - Get a list of all MIME Type that the API Consumes
File
- src/
Plugin/ openapi/ OpenApiGeneratorBase.php, line 350
Class
- OpenApiGeneratorBase
- Defines base class for OpenApi Generator plugins.
Namespace
Drupal\openapi\Plugin\openapiCode
public function getConsumes() {
return [];
}