You are here

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

Same name and namespace in other branches
  1. 8.2 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

1 call to DateTimeEnhancerBase::getOutputJsonSchema()
DateTimeFromStringEnhancer::getOutputJsonSchema in src/Plugin/jsonapi/FieldEnhancer/DateTimeFromStringEnhancer.php
Get the JSON Schema for the new output.
1 method overrides DateTimeEnhancerBase::getOutputJsonSchema()
DateTimeFromStringEnhancer::getOutputJsonSchema in src/Plugin/jsonapi/FieldEnhancer/DateTimeFromStringEnhancer.php
Get the JSON Schema for the new output.

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',
  ];
}