Neos.Neos/Classes/Routing/NodeIdentityConverterAspect.php
public function convertNodeToContextPathForRouting(JoinPointInterface $joinPoint)
    {
        $objectArgument = $joinPoint->getMethodArgument('object');
        if ($objectArgument instanceof NodeInterface) {
            return $objectArgument->getContextPath();
        } else {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
    }
public function convertNodeToContextPathForRouting(JoinPointInterface $joinPoint)
    {
        $objectArgument = $joinPoint->getMethodArgument('object');
        if ($objectArgument instanceof NodeInterface) {
            return $objectArgument->getContextPath();
        } else {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
    }
public function convertNodeToContextPathForRouting ( JoinPointInterface $ joinPoint ) { $ objectArgument = $ joinPoint -> getMethodArgument ( 'object' ) ; if ( $ objectArgument instanceof NodeInterface ) { return $ objectArgument -> getContextPath ( ) ; } else { return $ joinPoint -> getAdviceChain ( ) -> proceed ( $ joinPoint ) ; } }
Convert the object to its context path, if we deal with ContentRepository nodes.

@Flow\Around("method(Neos\Flow\Persistence\AbstractPersistenceManager->convertObjectToIdentityArray())")
@param JoinPointInterface $joinPoint the joinpoint
@return string|array the context path to be used for routing
Convert the object to its context path if we deal with ContentRepository nodes .