function TestTime::getRequestTime
Overrides Time::getRequestTime
File
-
core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspacePublisherTest.php, line 184
Class
- TestTime
- A test-only implementation of the time service.
Namespace
Drupal\Tests\workspaces\KernelCode
public function getRequestTime() {
return parent::getRequestTime() + static::$offset;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.