function Time::__construct
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Type/Time.php \Ramsey\Uuid\Type\Time::__construct()
- 11.1.x vendor/symfony/validator/Constraints/Time.php \Symfony\Component\Validator\Constraints\Time::__construct()
- 11.1.x core/modules/views/src/Plugin/views/cache/Time.php \Drupal\views\Plugin\views\cache\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;
}