Neos\Neos\Service\NodeOperations::getDesignatedParentNode PHP 메소드

getDesignatedParentNode() 보호된 메소드

protected getDesignatedParentNode ( Neos\ContentRepository\Domain\Model\NodeInterface $targetNode, string $position ) : Neos\ContentRepository\Domain\Model\NodeInterface
$targetNode Neos\ContentRepository\Domain\Model\NodeInterface
$position string
리턴 Neos\ContentRepository\Domain\Model\NodeInterface
    protected function getDesignatedParentNode(NodeInterface $targetNode, $position)
    {
        $referenceNode = $targetNode;
        if (in_array($position, array('before', 'after'))) {
            $referenceNode = $targetNode->getParent();
        }
        return $referenceNode;
    }