You are here

public function WorkflowTransition::getUser in Workflow 7.2

1 call to WorkflowTransition::getUser()
WorkflowTransition::execute in includes/Entity/WorkflowTransition.php
Execute a transition (change state of a node).

File

includes/Entity/WorkflowTransition.php, line 580
Contains workflow\includes\Entity\WorkflowTransition. Contains workflow\includes\Entity\WorkflowTransitionController.

Class

WorkflowTransition
Implements an actual Transition.

Code

public function getUser() {
  if (!isset($this->user) || $this->user->uid != $this->uid) {
    $this->user = user_load($this->uid);
  }
  return $this->user;
}