You are here

protected property EntityNormalizer::$formats in JSON:API 8

The formats that the Normalizer can handle.

Type: array

Overrides NormalizerBase::$formats

File

src/Normalizer/EntityNormalizer.php, line 43

Class

EntityNormalizer
Converts the Drupal entity object to a JSON API array structure.

Namespace

Drupal\jsonapi\Normalizer

Code

protected $formats = [
  'api_json',
];