public function getIncludeRelationships(StackReadOnlyInterface $stack) { $currentPath = $stack->end()->getPath(); $currentRootType = $stack->root()->getResource()->getType(); $includePaths = $this->parameterAnalyzer->getIncludeRelationships($currentPath, $currentRootType); return $includePaths; }