public function WorkflowTransition::getTargetEntityTypeId in Workflow 8
Returns the type of the entity to which the workflow is attached.
Return value
string An entity type.
Overrides WorkflowTransitionInterface::getTargetEntityTypeId
2 calls to WorkflowTransition::getTargetEntityTypeId()
- WorkflowTransition::dpm in src/
Entity/ WorkflowTransition.php - Helper/debugging function. Shows simple contents of Transition.
- WorkflowTransition::getTargetEntity in src/
Entity/ WorkflowTransition.php - Returns the entity to which the workflow is attached.
File
- src/
Entity/ WorkflowTransition.php, line 709
Class
- WorkflowTransition
- Implements an actual, executed, Transition.
Namespace
Drupal\workflow\EntityCode
public function getTargetEntityTypeId() {
return $this
->get('entity_type')->value;
}