You are here

public function WorkflowTransition::entity_id in Workflow 7

File

includes/Entity/WorkflowTransition.php, line 284
Contains workflow\includes\Entity\WorkflowTransition.

Class

WorkflowTransition
Implements an actual Transition.

Code

public function entity_id() {

  // Only use entity api if necessary.
  return $this->entity_type == 'node' ? $this->nid : entity_id($this->entity_type, $this->entity);
}