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