abstract protected function OpenApiGeneratorBase::getJsonSchema in OpenAPI 8.2
Same name and namespace in other branches
- 8 src/Plugin/openapi/OpenApiGeneratorBase.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase::getJsonSchema()
Gets the JSON Schema for an entity type or entity type and bundle.
Parameters
string $described_format: The format that will be described, json, json_api, etc.
string $entity_type_id: The entity type id.
string $bundle_name: The bundle name.
Return value
array The JSON schema.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 method overrides OpenApiGeneratorBase::getJsonSchema()
- NullGenerator::getJsonSchema in tests/
modules/ openapi_test/ src/ Plugin/ openapi/ OpenApiGenerator/ NullGenerator.php - Gets the JSON Schema for an entity type or entity type and bundle.
File
- src/
Plugin/ openapi/ OpenApiGeneratorBase.php, line 364
Class
- OpenApiGeneratorBase
- Defines base class for OpenApi Generator plugins.
Namespace
Drupal\openapi\Plugin\openapiCode
protected abstract function getJsonSchema($described_format, $entity_type_id, $bundle_name = NULL);