You are here

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

Same name and namespace in other branches
  1. 8 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 198

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

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