NullGenerator.php in OpenAPI 8.2
File
tests/modules/openapi_test/src/Plugin/openapi/OpenApiGenerator/NullGenerator.php
View source
<?php
namespace Drupal\openapi_test\Plugin\openapi\OpenApiGenerator;
use Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase;
final class NullGenerator extends OpenApiGeneratorBase {
public function getApiName() {
return 'null';
}
protected function getJsonSchema($described_format, $entity_type_id, $bundle_name = NULL) {
return NULL;
}
protected function getApiDescription() {
return '';
}
public function getConsumes() {
return [
'null',
];
}
public function getProduces() {
return [
'null',
];
}
public function getTags() {
return [
'name' => 'null',
'description' => $this
->t('NULL'),
];
}
}