You are here

protected function NullGenerator::getJsonSchema in OpenAPI 8.2

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

Overrides OpenApiGeneratorBase::getJsonSchema

File

tests/modules/openapi_test/src/Plugin/openapi/OpenApiGenerator/NullGenerator.php, line 27

Class

NullGenerator
The test generator.

Namespace

Drupal\openapi_test\Plugin\openapi\OpenApiGenerator

Code

protected function getJsonSchema($described_format, $entity_type_id, $bundle_name = NULL) {
  return NULL;
}