public function WorkflowTransition::getTargetEntityId in Workflow 8
Returns the ID of the entity to which the workflow is attached.
Return value
int The ID of the entity to which the workflow is attached.
Overrides WorkflowTransitionInterface::getTargetEntityId
3 calls to WorkflowTransition::getTargetEntityId()
- WorkflowScheduledTransition::save in src/
Entity/ WorkflowScheduledTransition.php - Saves a scheduled transition. If the transition is executed, save in history.
- WorkflowTransition::getTargetEntity in src/
Entity/ WorkflowTransition.php - Returns the entity to which the workflow is attached.
- WorkflowTransition::logError in src/
Entity/ WorkflowTransition.php - Generate a Watchdog error.
File
- src/
Entity/ WorkflowTransition.php, line 702
Class
- WorkflowTransition
- Implements an actual, executed, Transition.
Namespace
Drupal\workflow\EntityCode
public function getTargetEntityId() {
return $this
->get('entity_id')->target_id;
}