You are here

public function DateTimeEnhancerBase::getJsonSchema in JSON:API Extras 8

Get the JSON Schema for the new output.

Return value

array An structured array representing the JSON Schema of the new output.

Overrides ResourceFieldEnhancerInterface::getJsonSchema

File

src/Plugin/DateTimeEnhancerBase.php, line 32

Class

DateTimeEnhancerBase
Base class for date and time based resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_extras\Plugin

Code

public function getJsonSchema() {
  return [
    'type' => 'string',
  ];
}