function Time::__construct
Constructs a Time object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack|null $request_stack: (Optional) The request stack.
File
-
core/
lib/ Drupal/ Component/ Datetime/ Time.php, line 34
Class
- Time
- Provides a class for obtaining system time.
Namespace
Drupal\Component\DatetimeCode
public function __construct(?RequestStack $request_stack = NULL) {
$this->requestStack = $request_stack;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.