public function TimeMachine::__construct in Preview Link 2.0.x
Same name and namespace in other branches
- 2.x tests/modules/preview_link_test_time/src/TimeMachine.php \Drupal\preview_link_test_time\TimeMachine::__construct()
TimeMachine constructor.
Parameters
\Drupal\Core\State\StateInterface $state: State.
File
- tests/
modules/ preview_link_test_time/ src/ TimeMachine.php, line 28
Class
- TimeMachine
- Service used to simulate time.
Namespace
Drupal\preview_link_test_timeCode
public function __construct(StateInterface $state) {
$this->state = $state;
}