function DateTimeIso8601Normalizer::getSupportedTypes

Same name in other branches
  1. 11.x core/modules/serialization/src/Normalizer/DateTimeIso8601Normalizer.php \Drupal\serialization\Normalizer\DateTimeIso8601Normalizer::getSupportedTypes()

Overrides DateTimeNormalizer::getSupportedTypes

File

core/modules/serialization/src/Normalizer/DateTimeIso8601Normalizer.php, line 88

Class

DateTimeIso8601Normalizer
Converts values for the DateTimeIso8601 data type to RFC3339.

Namespace

Drupal\serialization\Normalizer

Code

public function getSupportedTypes(?string $format) : array {
    return [
        DateTimeIso8601::class => TRUE,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.