function DateTimeNormalizer::hasCacheableSupportsMethod

Same name in other branches
  1. 10 core/modules/serialization/src/Normalizer/DateTimeNormalizer.php \Drupal\serialization\Normalizer\DateTimeNormalizer::hasCacheableSupportsMethod()

Overrides NormalizerBase::hasCacheableSupportsMethod

File

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

Class

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

Namespace

Drupal\serialization\Normalizer

Code

public function hasCacheableSupportsMethod() : bool {
    return TRUE;
}

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