public function getFieldDependentData(Member $user, $fieldName) { if ($fieldName == 'PendingObjects') { return $this->workflowService->userPendingItems($user); } if ($fieldName == 'SubmittedObjects') { return $this->workflowService->userSubmittedItems($user); } }