public FormattedDateDiff::getMaxAge()
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
Deprecated
in Drupal 8.1.9 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Datetime\FormattedDateDiff::getCacheMaxAge() instead.
File
- core/lib/Drupal/Core/Datetime/FormattedDateDiff.php, line 69
Class
- FormattedDateDiff
- Contains a formatted time difference.
Namespace
Drupal\Core\Datetime
Code
public function getMaxAge() { return $this->getCacheMaxAge(); }
Please login to continue.