You are here

protected function SchedulerUiTrait::setTimeStep in Lightning Scheduler 8

Sets the time input's step attribute.

Parameters

int $time_step: (optional) The time step.

2 calls to SchedulerUiTrait::setTimeStep()
TransitionTest::setUp in tests/src/FunctionalJavascript/TransitionTest.php
UiTest::setUp in tests/src/FunctionalJavascript/UiTest.php

File

tests/src/Traits/SchedulerUiTrait.php, line 104

Class

SchedulerUiTrait
Contains methods for interacting with the scheduler UI.

Namespace

Drupal\Tests\lightning_scheduler\Traits

Code

protected function setTimeStep($time_step = 1) {
  $this
    ->config('lightning_scheduler.settings')
    ->set('time_step', $time_step)
    ->save();
}