function TimestampItemNormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 10 core/modules/serialization/src/Normalizer/TimestampItemNormalizer.php \Drupal\serialization\Normalizer\TimestampItemNormalizer::getSupportedTypes()

Overrides FieldItemNormalizer::getSupportedTypes

File

core/modules/serialization/src/Normalizer/TimestampItemNormalizer.php, line 45

Class

TimestampItemNormalizer
Converts values for TimestampItem to and from common formats.

Namespace

Drupal\serialization\Normalizer

Code

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

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