DateTimeNormalizer::$supportedInterfaceOrClass

Same name and namespace in other branches
  1. 8.9.x core/modules/serialization/src/Normalizer/DateTimeNormalizer.php \Drupal\serialization\Normalizer\DateTimeNormalizer::supportedInterfaceOrClass

Type: supportedInterfaceOrClass

Overrides NormalizerBase::$supportedInterfaceOrClass

File

core/modules/serialization/src/Normalizer/DateTimeNormalizer.php, line 35

Class

DateTimeNormalizer
Converts values for datetime objects to RFC3339 and from common formats.

Namespace

Drupal\serialization\Normalizer

Code

protected $supportedInterfaceOrClass = DateTimeInterface::class;

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