FormattedDateDiff

Contains a formatted time difference.

Hierarchy

File

core/lib/Drupal/Core/Datetime/FormattedDateDiff.php, line 12

Namespace

Drupal\Core\Datetime

Members

Name Modifiers Type Description
FormattedDateDiff::$maxAge protected property The maximum time in seconds that this string may be cached.
FormattedDateDiff::$string protected property The actual formatted time difference.
FormattedDateDiff::getCacheMaxAge public function The maximum age for which this object may be cached. Overrides UnchangingCacheableDependencyTrait::getCacheMaxAge
FormattedDateDiff::getMaxAge Deprecated public function The maximum age for which this object may be cached.
FormattedDateDiff::getString public function
FormattedDateDiff::toRenderable public function Returns a render array representation of the object. Overrides RenderableInterface::toRenderable
FormattedDateDiff::__construct public function Creates a new FormattedDateDiff instance.
UnchangingCacheableDependencyTrait::getCacheContexts public function The cache contexts associated with this object. Overrides CacheableDependencyInterface::getCacheContexts
UnchangingCacheableDependencyTrait::getCacheTags public function The cache tags associated with this object. Overrides CacheableDependencyInterface::getCacheTags
doc_Drupal
2016-10-29 09:15:08
Comments
Leave a Comment

Please login to continue.