You are here

public function ScheduledTransition::setAuthor in Scheduled Transitions 2.x

Set the author of the scheduled transition.

Parameters

\Drupal\Core\Session\AccountInterface $author: The scheduled transition author.

Return value

static Returns entity for chaining.

Overrides ScheduledTransitionInterface::setAuthor

File

src/Entity/ScheduledTransition.php, line 205

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function setAuthor(AccountInterface $author) {
  $this->author = $author
    ->id();
  return $this;
}