You are here

public function ScheduledTransition::setLockedOn in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Entity/ScheduledTransition.php \Drupal\scheduled_transitions\Entity\ScheduledTransition::setLockedOn()

Sets the lock time.

Parameters

int $time: The lock time.

Return value

static Returns entity for chaining.

Overrides ScheduledTransitionInterface::setLockedOn

File

src/Entity/ScheduledTransition.php, line 198

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function setLockedOn(int $time) {
  $this
    ->set('locked_on', $time);
  return $this;
}