You are here

public function Workflow::getOwner in Forms Steps 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Workflow.php, line 55

Class

Workflow
Defines the Workflow entity.

Namespace

Drupal\forms_steps\Entity

Code

public function getOwner() {
  return $this
    ->get('user_id')->entity;
}