public function Time::__construct in Drupal 8
Same name in this branch
- 8 core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::__construct()
- 8 core/modules/views/src/Plugin/views/cache/Time.php \Drupal\views\Plugin\views\cache\Time::__construct()
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::__construct()
Constructs a Time object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- core/
lib/ Drupal/ Component/ Datetime/ Time.php, line 25
Class
- Time
- Provides a class for obtaining system time.
Namespace
Drupal\Component\DatetimeCode
public function __construct(RequestStack $request_stack) {
$this->requestStack = $request_stack;
}