Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
- 9 core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
Namespace
Drupal\Core\Cache\Context
File
core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
View source
<?php
namespace Drupal\Core\Cache\Context;
use Drupal\Core\Cache\CacheableMetadata;
class TimeZoneCacheContext implements CacheContextInterface {
public static function getLabel() {
return t("Time zone");
}
public function getContext() {
return date_default_timezone_get();
}
public function getCacheableMetadata() {
return new CacheableMetadata();
}
}
Classes