WorkflowInstance::getTarget
Get the target-object that this WorkflowInstance "points" to.
Workflows are not restricted to being active on SiteTree objects, so we need to account for being attached to anything. Sets Versioned::set_reading_mode() to allow fetching of Draft _and_ Published content.
Signature
public function getTarget()
Returns
- (null
- | DataObject)