You are here

public function ScheduledTransition::getAuthor in Scheduled Transitions 8

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

Get the author for this scheduled transition.

Return value

\Drupal\user\UserInterface|null The author.

Overrides ScheduledTransitionInterface::getAuthor

File

src/Entity/ScheduledTransition.php, line 155

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getAuthor() : ?UserInterface {
  return $this
    ->get('author')->entity;
}