final class NullGenerator in OpenAPI 8.2
The test generator.
Plugin annotation
@OpenApiGenerator(
id = "null",
label = @Translation("Null"),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase implements ContainerFactoryPluginInterface, OpenApiGeneratorInterface uses StringTranslationTrait
- class \Drupal\openapi_test\Plugin\openapi\OpenApiGenerator\NullGenerator
- class \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase implements ContainerFactoryPluginInterface, OpenApiGeneratorInterface uses StringTranslationTrait
Expanded class hierarchy of NullGenerator
File
- tests/
modules/ openapi_test/ src/ Plugin/ openapi/ OpenApiGenerator/ NullGenerator.php, line 15
Namespace
Drupal\openapi_test\Plugin\openapi\OpenApiGeneratorView source
final class NullGenerator extends OpenApiGeneratorBase {
/**
* {@inheritdoc}
*/
public function getApiName() {
return 'null';
}
/**
* {@inheritdoc}
*/
protected function getJsonSchema($described_format, $entity_type_id, $bundle_name = NULL) {
return NULL;
}
/**
* {@inheritdoc}
*/
protected function getApiDescription() {
return '';
}
/**
* {@inheritdoc}
*/
public function getConsumes() {
return [
'null',
];
}
/**
* {@inheritdoc}
*/
public function getProduces() {
return [
'null',
];
}
/**
* {@inheritdoc}
*/
public function getTags() {
return [
'name' => 'null',
'description' => $this
->t('NULL'),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullGenerator:: |
protected | function |
Gets API description. Overrides OpenApiGeneratorBase:: |
|
NullGenerator:: |
public | function |
Gets the API name. Overrides OpenApiGeneratorBase:: |
|
NullGenerator:: |
public | function |
Get a list of all MIME Type that the API Consumes Overrides OpenApiGeneratorBase:: |
|
NullGenerator:: |
protected | function |
Gets the JSON Schema for an entity type or entity type and bundle. Overrides OpenApiGeneratorBase:: |
|
NullGenerator:: |
public | function |
Get a list of all MIME Type that the API Produces Overrides OpenApiGeneratorBase:: |
|
NullGenerator:: |
public | function |
Get tags for schema. Overrides OpenApiGeneratorBase:: |
|
OpenApiGeneratorBase:: |
protected | property | The configuration object factory. | |
OpenApiGeneratorBase:: |
protected | property | The configuration object factory. | |
OpenApiGeneratorBase:: |
static | property | Separator for using in definition id strings. | |
OpenApiGeneratorBase:: |
protected | property | The entity type manager. | |
OpenApiGeneratorBase:: |
protected | property | The Field Manager. | |
OpenApiGeneratorBase:: |
public | property | The generator label. | |
OpenApiGeneratorBase:: |
protected | property | The request options parameter. | |
OpenApiGeneratorBase:: |
protected | property | The configuration object factory. | |
OpenApiGeneratorBase:: |
protected | property | The route provider. | |
OpenApiGeneratorBase:: |
protected | property | The serializer. | |
OpenApiGeneratorBase:: |
protected | function | Cleans JSON schema definitions for OpenAPI. | |
OpenApiGeneratorBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
OpenApiGeneratorBase:: |
protected | function | Check whether a definitions exists for a key. | |
OpenApiGeneratorBase:: |
protected | function | Fix default field value as zero instead of FALSE. | |
OpenApiGeneratorBase:: |
public | function |
Get base path for schema. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
protected | function | Gets the reference to the definition in the document. | |
OpenApiGeneratorBase:: |
public | function |
Get model definitions for Drupal entities and bundles. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
protected | function | Gets the entity definition key. | |
OpenApiGeneratorBase:: |
protected | function | Get possible responses for an entity type. | |
OpenApiGeneratorBase:: |
public | function |
Get plugin id. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
protected | function | Creates the 'info' portion of the API. | |
OpenApiGeneratorBase:: |
public | function |
Get plugin label. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
Get the options for the current schema download. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
Returns the paths information. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
Returns a list of valid security types for the api. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
Get a list a valid security method definitions. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
Generates OpenAPI specification. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
protected | function | Determines if an entity type and/or bundle show be included. | |
OpenApiGeneratorBase:: |
public | function |
Set the options for the current schema download. Overrides OpenApiGeneratorInterface:: |
|
OpenApiGeneratorBase:: |
public | function |
OpenApiGeneratorBase constructor. Overrides PluginBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |