/** * Returns the primary child node of this node. * * Which node acts as a primary child node will in the future depend on the * node type. For now it is just the first child node. * * @return \TYPO3\TYPO3CR\Domain\Model\Node The primary child node or NULL if no such node exists * @api */ public function getPrimaryChildNode() { return $this->nodeDataRepository->findFirstByParentAndNodeTypeInContext($this->getPath(), NULL, $this->context); }