Neos\Neos\Routing\NodeIdentityConverterAspect::convertNodeToContextPathForRouting PHP 메소드

convertNodeToContextPathForRouting() 공개 메소드

Convert the object to its context path, if we deal with ContentRepository nodes.
public convertNodeToContextPathForRouting ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : string | array
$joinPoint Neos\Flow\Aop\JoinPointInterface the joinpoint
리턴 string | array the context path to be used for routing
    public function convertNodeToContextPathForRouting(JoinPointInterface $joinPoint)
    {
        $objectArgument = $joinPoint->getMethodArgument('object');
        if ($objectArgument instanceof NodeInterface) {
            return $objectArgument->getContextPath();
        } else {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
    }
NodeIdentityConverterAspect