You are here

public function WorkflowTransition::getOwnerId in Workflow 8

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

2 calls to WorkflowTransition::getOwnerId()
WorkflowScheduledTransition::addDefaultComment in src/Entity/WorkflowScheduledTransition.php
Create a default comment (on scheduled transition w/o comment).
WorkflowScheduledTransition::save in src/Entity/WorkflowScheduledTransition.php
Saves a scheduled transition. If the transition is executed, save in history.

File

src/Entity/WorkflowTransition.php, line 885

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function getOwnerId() {
  return $this
    ->get('uid')->target_id;
}