You are here

public function DateTimeEnhancerBase::getOutputJsonSchema in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/DateTimeEnhancerBase.php \Drupal\jsonapi_extras\Plugin\DateTimeEnhancerBase::getOutputJsonSchema()

Get the JSON Schema for the new output.

Return value

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

Overrides ResourceFieldEnhancerInterface::getOutputJsonSchema

File

src/Plugin/DateTimeEnhancerBase.php, line 22

Class

DateTimeEnhancerBase
Base class for date and time based resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_extras\Plugin

Code

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