protected function SchedulerUiTrait::setRequestTime in Lightning Workflow 8.3
Sets the time of the request, according to the datetime.time service.
Parameters
int $request_time: The time stamp to set.
5 calls to SchedulerUiTrait::setRequestTime()
- ScheduledTransitionTest::testFutureSequence in modules/
lightning_scheduler/ tests/ src/ Functional/ ScheduledTransitionTest.php - Tests scheduling a series of valid transitions in the future.
- ScheduledTransitionTest::testSingleTransition in modules/
lightning_scheduler/ tests/ src/ Functional/ ScheduledTransitionTest.php - Tests a single scheduled workflow state transition.
- ScheduledTransitionTest::testSingleTransitionWithPendingRevision in modules/
lightning_scheduler/ tests/ src/ Functional/ ScheduledTransitionTest.php - Tests that scheduled transitions work correctly with pending revisions.
- TransitionTest::testClearCompletedTransitions in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests that completed transitions are deleted.
- TransitionTest::testPublishPendingRevision in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests automatically publishing a pending revision.
File
- modules/
lightning_scheduler/ tests/ src/ Traits/ SchedulerUiTrait.php, line 115
Class
- SchedulerUiTrait
- Contains methods for interacting with the scheduler UI.
Namespace
Drupal\Tests\lightning_scheduler\TraitsCode
protected function setRequestTime($request_time) {
$this->container
->get('state')
->set('lightning_scheduler.request_time', $request_time);
}